Allow setting removal policy for BucketNotificationsHandler Lambda log group #19726
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
I would like the ability to specify a log stream, or the removal_policy for the log stream, that is used by the BucketNotificationsHandler.
Use Case
If I understand it correctly, in order to add an S3 bucket event notification, CDK has to create a Lambda function. That Lambda automatically creates a log group. The log group does not have a removal policy, so
cdk destroy
does not remove it. I would like to be able to remove them automatically.Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.17.0
Environment details (OS name and version, etc.)
Darwin ML11085 19.6.0 Darwin Kernel Version 19.6.0: Thu Jan 13 01:26:33 PST 2022; root:xnu-6153.141.51~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: