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
Make create_before_destroy default to true for security groups
Introduce preserve_security_group_id to control replacement of security group when rules change
why
In most cases, replacing a security group with create_before_destroy = false will fail with an error because you cannot destroy a security group while it is associated with a resource
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