You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is inconsistent with the Timescale UI, which does have the delete protection:
Workaround
Adding this to the Terraform resource ensures that there's delete protection at the Terraform level:
lifecycle {
prevent_destroy=true
}
Related resources
The aws_db_instance Terraform resource has an argument called deletion_protection which activates Deletion Protection at the backend level, so it works across their UIs and APIs.
Version 1.11.0 of the Timescale Terraform provider introduced support for setting environment tags on services (
DEV
orPROD
).However, when creating a service like this, setting the environment tag to
PROD
:... then commenting it out, it deletes the database without any sort of warning or block:
This is inconsistent with the Timescale UI, which does have the delete protection:
Workaround
Adding this to the Terraform resource ensures that there's delete protection at the Terraform level:
Related resources
aws_db_instance
Terraform resource has an argument calleddeletion_protection
which activates Deletion Protection at the backend level, so it works across their UIs and APIs.aws_cognito_user_pool
Terraform resource also has andeletion_protection
argument that does the exact same at the backend level.The text was updated successfully, but these errors were encountered: