Skip to content

Commit 108737d

Browse files
authored
feat(ec2): disable api termination (#30620)
### Issue # (if applicable) None ### Reason for this change Cloudformation has `disableApiTermination` property for turning on Termination Protection on EC2 Instance. This property is not configurable from L2. ### Description of changes Add `disableApiTermination` property to InstanceProps. ### Description of how you validated changes I've added both unit and integ tests. ### 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 893769e commit 108737d

File tree

15 files changed

+34525
-0
lines changed

15 files changed

+34525
-0
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.js.snapshot/asset.358df072f638d226bc60515a98fa15305e91193108367a0fa01dc626fb9b07d6.bundle/index.js

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

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.js.snapshot/asset.bde7b5c89cb43285f884c94f0b9e17cdb0f5eb5345005114dd60342e0b8a85a1/__entrypoint__.js

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

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.js.snapshot/asset.bde7b5c89cb43285f884c94f0b9e17cdb0f5eb5345005114dd60342e0b8a85a1/index.js

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

packages/@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.instance-disable-api-termination.js.snapshot/aws-cdk-ec2-disable-api-termination.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)