-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(synthetics): add DeleteLambdaResourcesOnCanaryDeletion to the canary L2 #23772
Comments
|
Did this property go away? OP's link to the CloudFormation docs no longer shows anything about DeleteLambdaResourcesOnCanaryDeletion. |
Do you know if CloudFormation itself supports deleting the lambda? I'm not actually using the CDK, just landed here because OP had a link to the CloudFormation docs that looks like it mentioned the kind of option I need. |
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: