Warnings about instance replacement. #16057
Closed
michaelbrewer
started this conversation in
General
Replies: 1 comment 2 replies
-
I like this idea @michaelbrewer 🙂 Currently, you can use Even a warning sounds like it could be useful, I know lots of CDK users can get tripped up by the way CloudFormation handles resource replacement |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Idea?
Warn users when there will be an instance replacement on deployment, and potentially an option to block an deployment when this could happen.
Even in the CFN spec json, there is an indication of the
UpdateType
being mutable (update with some interruption or none) vs immutable, being a full instance replacement.Update with No Interruption
AWS CloudFormation updates the resource without disrupting operation of that resource and without changing the resource's physical ID. For example, if you update certain properties on an AWS::CloudTrail::Trail resource, AWS CloudFormation updates the trail without disruption.
Updates with Some Interruption
AWS CloudFormation updates the resource with some interruption. For example, if you update certain properties on an AWS::EC2::Instance resource, the instance might have some interruption while AWS CloudFormation and Amazon EC2 reconfigure the instance.
Replacement
AWS CloudFormation recreates the resource during an update, which also generates a new physical ID. AWS CloudFormation usually creates the replacement resource first, changes references from other dependent resources to point to the replacement resource, and then deletes the old resource. For example, if you update the AvailabilityZone property of an AWS::EC2::Instance resource type, AWS CloudFormation creates a new resource and replaces the current EC2 Instance resource with the new one.
Beta Was this translation helpful? Give feedback.
All reactions