Comments (2)
When you say re-run I think you mean calling the UpdateStack API. If that is correct, deletion would indeed be the case because CloudFormation has a history of the resource being needed and then the resource not being needed so it would try to delete it. If it were a new stack it would not have the history of the resource being needed so it would not try to delete it.
For your use case you may be able to use the DeletionPolicy attribute to prevent the resource from being deleted.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html
from aws-cloudformation-templates.
Thanks @LRomandine I did not understand the behavior of conditions. DeletionPolicy works great for my needs.
from aws-cloudformation-templates.
Related Issues (20)
- Easy_Install command not found for RHEL 8 HOT 1
- Macro Transform LanguageExtensions not working HOT 1
- CloudFormation Macros Examples for .../Public-and-Private-Subnet-per-AZ/Create-Macro.yaml uses deprecated Lambda runtime. HOT 1
- SSH to EC2 in private vpc? HOT 3
- Incorrect reference to `/opt/aws/` HOT 2
- T4 instance group not working on ECS template HOT 1
- AWS::ApiGateway::Method Integration Uri incorrect parameter problem. HOT 1
- MacrosExamples - ExecutionRoleBuilder update and typo HOT 2
- cfn-hup in daemon mode doesn't work on any currently supported Python version, because of dependency on obsolete python-daemon version HOT 8
- AmazonCloudWatchAgent templates are outdated HOT 2
- AWS::Cognito::UserPool LambdaVersion does not get set correctly HOT 4
- Awslabs
- Use latest aws-cfn-bootstrap
- Move macros?
- Standardize template formats
- Make sure everything in aws directory passes cfn-lint and cfn-guard checks
- Make sure everything in the community directory passes cfn-lint
- Add custom resource examples
- Re-organize directories
- Add PR validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cloudformation-templates.