aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.33k stars 3.76k forks source link

feat(ec2): disable api termination #30620

Open AlemanCS opened 6 days ago

AlemanCS commented 6 days ago

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


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

aws-cdk-automation commented 2 hours ago

AWS CodeBuild CI Report

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository