You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be super helpful if there were a Terraform module to deploy this S3 log ingestion Lambda, similar to how the New Relic CloudWatch log ingestion Lambda, here: https://github.com/newrelic/aws-log-ingestion.
Thanks!
The text was updated successfully, but these errors were encountered:
I made my own terraform module for this and it wasn't too bad. The issue I had was with building. They're using a crazy old version for smart_open, it was so old it couldn't build a wheel file. So I updated it in the requirements.txt file and it built fine. I have been monitoring the logs and they seem to be healthy. So with all that said here is how you can do it.
Update the requirements.txt line that says:
smart-open==2.1.0
To
smart-open==4.1.2
Make a script file with:
#!/bin/bash
set -euo pipefail
trap "set +e" EXIT
# change working directory to this directory
pushd "$(dirname "$0")"
pip install --no-cache-dir --platform manylinux2014_x86_64 --only-binary=:all: --python-version $1 -r requirements.txt -t .
popd
Then you can use the null_resource to execute your script, archive_file to generate the zip, then include the zip into the source_code_hash field of the aws_lambda_function resource.
Hi -
It would be super helpful if there were a Terraform module to deploy this S3 log ingestion Lambda, similar to how the New Relic CloudWatch log ingestion Lambda, here: https://github.com/newrelic/aws-log-ingestion.
Thanks!
The text was updated successfully, but these errors were encountered: