-
Notifications
You must be signed in to change notification settings - Fork 342
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
Termination Protection is not Enabled for Existing Stacks when Create Change Set is Enabled #2149
Comments
@jmwyson Thanks for filing an issue. Would you be willing to create a PR for this? |
Hi @jmwyson thanks for filing the issue. Could you please let me know the following
From my testing locally, I am unable to reproduce the issue and am able achieve the expected result when creating a new cloudformation stack. Could you please provide more detailed example for reproducing the issue?
|
Confirming I am also encountering the same error. Below is an example to replicate the issue:
Version
|
@iris-nortal Thanks for details! #2391 should fix the issue. |
…with create_changeset set (#2391) SUMMARY Fixes #2149 Fix bug where termination protection is not updated when create_changeset=true is used for stack updates ISSUE TYPE Bugfix Pull Request COMPONENT NAME cloudformation ADDITIONAL INFORMATION Reviewed-by: Helen Bailey <[email protected]> Reviewed-by: Bikouo Aubin Reviewed-by: GomathiselviS <[email protected]>
…with create_changeset set (#2391) SUMMARY Fixes #2149 Fix bug where termination protection is not updated when create_changeset=true is used for stack updates ISSUE TYPE Bugfix Pull Request COMPONENT NAME cloudformation ADDITIONAL INFORMATION Reviewed-by: Helen Bailey <[email protected]> Reviewed-by: Bikouo Aubin Reviewed-by: GomathiselviS <[email protected]> (cherry picked from commit 86b9182)
Summary
When both create_changeset and termination_protection are set when calling the cloudformation module, the termination_protection is not configured for the stack.
The problem seems to be the if logic in https://github.com/ansible-collections/amazon.aws/blob/52d3965188d45841495c1721aaf1615d08d6874d/plugins/modules/cloudformation.py#L779C1-L787C110 where if create changeset is enabled, then the "else" where the termination protection is updated, is not executed.
Issue Type
Bug Report
Component Name
cloudformation
Ansible Version
Collection Versions
AWS SDK versions
Configuration
No response
OS / Environment
No response
Steps to Reproduce
Expected Results
For an existing stack, the stack should have termination protection enabled.
Actual Results
For an existing stack, termination protection is not enabled.
Code of Conduct
The text was updated successfully, but these errors were encountered: