-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
More accurate control of create before destroy behaviors #35
Conversation
/test all |
/test all |
/test all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see comments
/test all |
/test all |
/test all |
This is particularly important because a security group cannot be destroyed while it is associated with | ||
a resource (e.g. a load balancer), but "destroy before create" behavior causes Terraform | ||
to try to destroy the security group before disassociating it from associated resources, | ||
so plans fail to apply with the error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so plans fail to apply with the error | |
so plans fail with the error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Terraform successfully creates the plan, but the plan fails to apply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, a few nitpicks
Great depiction of the problem at a high-level. This is a great addition to the README. |
/test all |
note
README and code are (hopefully) final.
This will be released as v2.0.0-rc1 due to changed defaults, requirement for Terraform 1.0, and possible service interruption when upgrading. Migration document TBD.
what
create_before_destroy
default totrue
for security groupspreserve_security_group_id
to control replacement of security group when rules changewhy
create_before_destroy = false
will fail with an error because you cannot destroy a security group while it is associated with a resourcereferences