Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda function is created with invalid environment variable name. #60

Open
shinji-newrelic opened this issue Dec 11, 2023 · 0 comments

Comments

@shinji-newrelic
Copy link

In the code, environment variable with name S3_CLOUDTRAIL_LOG_PATTERN is read from environment variables.

https://github.com/newrelic/aws_s3_log_ingestion_lambda/blob/master/src/handler.py#L107

However if this is deployed from AWS Serverless Application Repository, the environment variable S3_CLOUD_TRAIL_LOG_PATTERN is defined.
("_" is inserted between "CLOUD" and "TRAIL")

https://github.com/newrelic/aws_s3_log_ingestion_lambda/blob/master/template.yml#L91
https://github.com/newrelic/aws_s3_log_ingestion_lambda/blob/master/template.yml#L128

This may introduce miss configuration by the users. They should have same environment variable name.

@shinji-newrelic shinji-newrelic changed the title Lambda function is created with invalid environment name. Lambda function is created with invalid environment variable name. Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant