3 ms·
Terraform usually use cloud provider defaults if they're applicable. There's also 2 deletion protection mechanisms for RDS (and maybe GCP DBs). AWS has built i
by nijave 5y ago
Terraform usually use cloud provider defaults if they're applicable.
There's also 2 deletion protection mechanisms for RDS (and maybe GCP DBs). AWS has built in deletion protection which is an attribute on the resource and Terraform has lifecycle protection which is a meta attribute you can put on any resource type.
The former disables the delete API (returns an error) on the AWS side and the latter prevents Terraform from running the destroy event (which includes replaces)