What does this change when a resource must be replaced?
lifecycle {
create_before_destroy = true
}
- The new one is created first
- The old one is kept forever
- The resource can never be destroyed
- Replacement is skipped silently
Terraform normally destroys then recreates; this flips the order to avoid downtime, as long as names do not clash.
Play DevOps ▸