Skip to content

Commit

Permalink
feat(ec2): disable api termination (#30620)
Browse files Browse the repository at this point in the history
### 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*
  • Loading branch information
AlemanCS authored Oct 16, 2024
1 parent 893769e commit 108737d
Show file tree
Hide file tree
Showing 15 changed files with 34,525 additions and 0 deletions.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 108737d

Please # to comment.