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

Unable to override LogGroupName in Lambda #33

Closed
charliejllewellyn opened this issue May 1, 2020 · 1 comment
Closed

Unable to override LogGroupName in Lambda #33

charliejllewellyn opened this issue May 1, 2020 · 1 comment

Comments

@charliejllewellyn
Copy link

charliejllewellyn commented May 1, 2020

Despite having set:

from aws_embedded_metrics.config import get_config
Config = get_config()
Config.log_group_name = "testLogGroup"

It defaults to the lambda function name.

This looks to be set in lambda_environment.py to only return the Lambda function name:

    def get_log_group_name(self) -> str:
        return get_env("AWS_LAMBDA_FUNCTION_NAME")\

Would be nice to be able to override this.

@jaredcnance
Copy link
Member

jaredcnance commented May 1, 2020

Unfortunately, there is no way to change the LogGroup on Lambda functions today. It is controlled by the Lambda platform. This setting only applies to environments using the CWAgent. Improving this experience is on our roadmap.

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

2 participants