-
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
Terraform destroy fails on missing SQS queue #6497
Comments
Hi @joshgarnett apologies for the error here. Luckily, this has already been fixed in #6381 and will be released in 0.6.16 Thanks for the report Paul |
hitting this again @stack72 with 0.7.0-rc3 Maybe it's because I had two sqs queues with the same "name =" attribute but different aws_sqs_queue "" |
Hi @jedi4ever So I just tested this and didn't find the same issue:
Terraform apply:
Deleted it from the console and then ran terraform destroy:
As you can see, no error and it reported it didn't have to destroy anything. I am also using 0.7.0-RC3 I believe this may have been due to your specific scenario with 2 queues with the same name= attribute Paul |
@stack72 thanks for testing. Isn't it useful TF would disable duplicate use of names in it's checks? |
@jedi4ever so the Delete step works as follows:
The ID is a Queue URL e.g. https://REGION_ENDPOINT/queue.amazonaws.com/YOUR_ACCOUNT_NUMBER/YOUR_QUEUE_NAME So, if there are 2 queues the same, then I think this is what the issue will be. When it tries to issue the delete, it sounds like it could be deleting 1 of 2 queues P. |
@stack72 would you not consider this a bug ? or need to put a TF safe guard in place ? |
I'm having this issue when doing
|
I ended up creating the queues manually to get this unstuck. Still a bit confusing why I can't destroy because a resource is missing. Creating something so that I can destroy it with terraform seems... not right. |
I'm running into this error as well when running Terraform destroy:
Interesting thing about this is that if I run Terraform destroy again, this error does not appear. Does this issue need to be re-opened? |
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. |
When attempting to destroy an environment, I run into the following issue when an SQS queue is already missing. This does not appear to be an issue with other Amazon resources.
Terraform v0.6.15
The text was updated successfully, but these errors were encountered: