-
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
Timeout destroying aws_db_instance #310
Comments
I should mention that the AWS account is brand new (created yesterday), so the RDS instance was created in a VPC (as opposed to the "EC2 classic"-style instances which have no explicit VPC, use DB security groups, etc). |
Just on this, I had the same issue, the timeout for aws db instance in Terraform is set to 10 minutes. I had to modify the terraform code to extend that as creating an aws rds (postgresql) takes just over 10 minutes. It would be nice to have timeouts configurable somehow, was planning to look into that myself but haven't had much time recently. |
Looking at the AWS console during the run, and even now, there weren't any signs the RDS instance was actually being destroyed (it didn't appear to change state at any point). And it's still alive now. So... although some RDS operations can take a while, that doesn't seem like the problem here. |
This appears to be happening with RDS instances that have been created with the recently merged VPC code too - I can now create them fine but not destroy them unfortunately. |
This should be fixed now. It looks like we werent properly reporting the destroy error. |
I've created an AWS RDS instance with Terraform, but since I can't currently control what VPC it's created in, for the moment I'd like to destroy the one I've made and create the RDS by hand outside of Terraform.
As such, I've removed the aws_db_instance resource from my Terraform config by renaming the .tf file.
terraform plan
correctly shows that Terraform plans to destroy the instance, but when I try to apply the plan, Terraform never completes destroying the instance.The console output for the plan and apply is below, along with timestamps so the length of timeout can be seen:
The config for the aws_db_instance was this:
The
project
andproject_hyphenated
variables are simply strings like "project_name" and "project-name". As mentioned above, I've disabled the resource config by renaming the file to "database-instance.tf.disabled".The rest of the config is spread across multiple files, and quite long, and I don't think is relevant to the configuration of this resource. Let me know if any more details are useful, though.
The text was updated successfully, but these errors were encountered: