Skip to content

Commit bdb4a59

Browse files
feat(synthetics): cleanup provisioned lambda and layers for canary (#32738)
### Issue # (if applicable) None ### Reason for this change For the Lambda and Layer used in Canary, the deletion of related resources is [handled by a custom resource](#26580), but this functionality is now supported natively by CloudFormation. https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-synthetics-canary.html#cfn-synthetics-canary-provisionedresourcecleanup ### Description of changes - Add `provisionedResourceCleanup` prop to `CanaryProps` - deprecate `cleanup` prop which uses custom resource ### Describe any new or updated permissions being added None ### Description of how you validated changes Add both unit and integ test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 7329068 commit bdb4a59

File tree

13 files changed

+33188
-4
lines changed

13 files changed

+33188
-4
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-synthetics/test/integ.canary-provisioned-resource-cleanup.js.snapshot/SyntheticsCanaryProvisionedResourceCleanupDefaultTestDeployAssert3003A202.assets.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)