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

aws_lambda: Add the ability to define a custom Function Log Group #30218

Closed
1 of 2 tasks
nnolan opened this issue May 15, 2024 · 2 comments
Closed
1 of 2 tasks

aws_lambda: Add the ability to define a custom Function Log Group #30218

nnolan opened this issue May 15, 2024 · 2 comments
Labels
@aws-cdk/aws-lambda Related to AWS Lambda feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@nnolan
Copy link

nnolan commented May 15, 2024

Describe the feature

Lambda Function and CloudFormation templates support the ability to define a custom CloudWatch Log Group to send logs to. This functionality still does not exist in CDK

Use Case

It is frustrating to have to handle writing logs to a custom CloudWatch Log Group inline within lambda functions, when Lambda and CloudFormation has supported the ability to write to custom log groups for some time.

Proposed Solution

Add LoggingConfig as a variable when initializing the Function class

lambda = aws_lambda.Function( self, "my-function", code=..., logging_config={ log_group="my-loggroup } )

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

v2.141.0

Environment details (OS name and version, etc.)

linux, mac

@nnolan nnolan added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels May 15, 2024
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label May 15, 2024
@nnolan nnolan closed this as completed May 15, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@nnolan
Copy link
Author

nnolan commented May 15, 2024

I forgot to update my poetry cdk version locally... shame, shame, shame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda Related to AWS Lambda feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant