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.
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.