-
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
Stack: terminationProtection prop not applying #29487
Comments
Not sure what I did wrong the first time, but it seems to work fine now.
@jlosito Can you try to deploy in debug mode ( |
@nmussy You're probably correct. I did a little bit more digging and I think my scenario is more along these lines. Was it ever finalized whether a warning was going to be added in the meantime? From what I understand, additional functionality would need to be added to the CloudFormation API. |
Thanks for reaching out - it looks like #17871 closed for staleness. I'll go ahead and reopen that issue to track the request to add a warning. |
|
Describe the bug
When setting the terminationProtection property to true, the stack does not actually change its setting.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html#terminationprotection
Expected Behavior
When setting the property to true, the stack enables termination protection.
Current Behavior
The stack continues to have termination protection set to disabled.
Reproduction Steps
Deploy a stack using the stack construct while having its terminationProtection property set to true.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.131.0
Framework Version
No response
Node.js Version
default CodeBuild options
OS
default CodeBuild options
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: