aws synthetics: cleanup canary resources #29548
Labels
@aws-cdk/aws-synthetics
Related to Amazon CloudWatch Synthetics
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Upon stack deletion I noticed that
Canary
constructs left behind not only lambda functions, but S3 buckets (containing screenshots) as well. I would have expected all resources created by the canary to be deleted automatically, or at least having aretention
option on theCanary
construct.Use Case
On deletion of a
Canary
construct, all resources (lambdas, s3 buckets,…) created for it should be deleted by default.Proposed Solution
I believe #26580 went for a solution approach, but is limited to the lambda function for the canary. Maybe this can be extended to all resources, or even made the default instead of a separate
cleanup
configuration?Other Information
I saw similar efforts in #18448, which added lambda deletion but did not resolve s3 bucket deletion to my knowledge.
Acknowledgements
CDK version used
2.130.0
Environment details (OS name and version, etc.)
irrelevant
The text was updated successfully, but these errors were encountered: