-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
renaming a module breaks lifecycle.prevent_destroy
(and possibly aws_efs_file_system
)
#10523
Comments
There is a feature request to have an even stricter version of prevent destroy where it cannot be destroyed no matter what (or perhaps prevent destroy being set explicitly false, we haven't decided yet), but this isn't supported yet. There is an issue open somewhere for that though but sorry I don't have the link. We are interested in that feature though, so I would expect it not too far away. |
Any movement on this? There appears to be no way to prevent terraform from destroying an essential resource (e.g. a database) when there's a seemingly trivial change like it's identifier. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform v0.8.0-dev
Affected Resources
main.tf (first apply)
main.tf (second apply)
test/main.tf
Debug Output
Error applying plan:
1 error(s) occurred:
Expected Behavior
aws_efs_mount_target
andaws_efs_file_system
left untouchedActual Behavior
aws_efs_mount_target
gets destroyedaws_efs_file_system
aws_efs_file_system
gets destroyed next runSteps to Reproduce
terraform get
terraform apply
terraform get
terraform apply
The text was updated successfully, but these errors were encountered: