CustomResourceConfig: Logging retention not set for CR when "autoDeleteObjects: true" is added to S3 Bucket #33116
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
feature-request
A feature should be added or improved.
p2
Describe the bug
When "autoDeleteObjects: true" is added to an S3 bucket, CDK creates a Custom Resource to delete objects from the S3 Bucket. However, retention policy is not set on the created CloudWatch log group even with the CustomResourceConfig module is used. I suspect there may be other construct types that this configuration does not currently work for either.
Here's a sample of the code
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The CloudWatch log group created by the custom resource should have retention policy set.
Current Behavior
CloudWatch log group created by the custom resource does not have retention policy set.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.176.0
Framework Version
No response
Node.js Version
v20.17.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: