(synthetics): add DeleteLambdaResourcesOnCanaryDeletion to the canary L2 #23772
Labels
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
Describe the feature
Lambda has a new? property that will delete lambda resources when the canary is deleted.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-synthetics-canary.html#cfn-synthetics-canary-deletelambdaresourcesoncanarydeletion
This is a step in the right direction, but still not perfect, because canaries will still isolate s3 buckets, log groups, etc. Still, we should support this property in the L2 and allow our users to specify this prop.
Use Case
Currently, after deleting the canary you have to go and manually delete lambda/s3/cloudwatch logs. Now, you can set this property and only delete s3 + cloudwatch.
Proposed Solution
Add the prop to
Canary
. This will need some testing to make sure that the property is doing what we expect.Other Information
No response
Acknowledgements
CDK version used
latest
Environment details (OS name and version, etc.)
MacOs
The text was updated successfully, but these errors were encountered: