-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Require final_snapshot_identifier when skip_final_snapshot = false. #769
Comments
+1 This is an issue I have experienced. |
+1 I am experiencing the same issue. Can we expect to have a near term resolution for this? |
I know this is hacky, but to work around this, I had to edit my .tfstate and change it to:
in order to bypass it. |
Any updates on this issue? I used the solution from @drmikecrowe in the meantime. |
That's correct @drmikecrowe, but in that case you won't have the snapshot. Add |
@jepma I think (but I'm pulling the from memory of several days ago) there's something wonky with the default variables and tfstate: I believe If you set When I tried to destroy the test RDS instance, it failed because of the |
Ok! In my case I wanted the snapshot but did not provide the identifier. So, the failure popped up. The fix is fairly easy to implement within the Go code so if I have some spare time left this weekend I will try to create a PR. |
I ran into this too. Didn't need a final snapshot so just manually deleted the cluster via AWS console, then ran terraform destroy to start over again -- seems fine. |
A workaround for this would be to change 'skip_final_snapshot' to true, run 'terraform apply' and then run 'terraform destroy'... It would be good if Terraform took the value from config rather than state for this though! |
I can confirm, a work around is to change |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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. |
This issue was originally opened by @davecozz as hashicorp/terraform#14449. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
0.9.4
Affected Resource(s)
Expected Behavior
Now that
skip_final_snapshot
defaults to false it would be nice iffinal_snapshot_identifier
was required whenskip_final_snapshot == false
.Actual Behavior
TF currently allows an RDS instance/cluster to be created without specifying any
final_snapshot_identifier
, which subsequently requires manual intervention when trying to delete the resource:Steps to Reproduce
skip_final_snapshot
value (false) without specifying afinal_snapshot_identifier
attribute.The text was updated successfully, but these errors were encountered: