-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Terraform is unable to destroy AWS VPC on of EMR cluster #8285
Comments
A quick edit on my last "Additional Context" comment: After Terraform deletes everything else, except for the VPC, I can see in the terraform.tfstate only the VPC left to be destroyed. However, in the aws console I still see my VPC with an unnamed route table and three security groups: So I guess this is an issue when we let aws to handle the security EMR managed security groups, it seems Terraform is not being able to delete them when we destroy the aws_emr_cluster resource. |
So I have switched to use It could be possible that if we let EMR create the managed SG, terraform is not being able to delete them? |
Hi @Ohtar10 👋 Could you add a comment with the whole Terraform config you're using, so someone will be able to accurately confirm the error? |
Hi @aerostitch, I'm sorry, I had to give back the computer I was using when I faced this, so I've lost the environment and haven't tried again since. |
This functionality has been released in v4.29.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. 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 @Ohtar10 as hashicorp/terraform#20995. It was migrated here as a result of the provider split. The original body of the issue is below.
Hi!
I'm using terraform with aws, working with EMR clusters, I'm able to create the cluster completely using the docs instructions but when I try to delete it, terraform always fails in destroy de VPC and I'm forced to go to the console and delete it manually.
Terraform Version
Expected Behavior:
Terraform should have destroyed everything including the VPC
Actual Behavior:
The VPC is not deleted even after ~10 min retries, the output of Terraform is:
Workaround:
Manually go to the aws web console and delete the VPC. If I do this while is destroying the VPC, Terraform finishes successfully.
Steps to Reproduce
terraform init
terraform apply
terraform destroy -auto-approve
Additional Context
keep_job_flow_alive_when_no_steps
,instance_group
andadditional_info
.revoke_rules_on_delete = true
before deleting; no luck, still unable to delete the VPC.revoke_rules_on_delete = true
Still no luck.References
Maybe this is related to:
The text was updated successfully, but these errors were encountered: