-
Notifications
You must be signed in to change notification settings - Fork 46
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
Unable to delete Cloudformation stacks #106
Comments
Hi @andreamaruccia, I've also noticed the throttling exception that appears somehow if the AWS API is called too often. I added some retry logic that should fix the problem you are seeing: https://github.com/jckuester/awsweeper/releases/tag/v0.10.1 And yep, in 0.7 it worked because I didn't use the Terraform AWS Provider back then to support so many resources. |
hi @jckuester it seems this helps already as I can delete cloudformation stacks that I've created recently. This is what works well:
use this configuration:
This doesn't:
I wonder if this is due to pagination or such now that the rate limiting is out of the way |
Is there any useful debug output of |
that's the weired thing it just says it's being deleted:
|
@andreamaruccia, hmm, hard to say from here what's wrong. Is it just a single resource that doesn't get deleted or many? If you run |
@jckuester all the resources remain, not a single one was deleted (14 in my case) edit: yes I ran it 2/3 times in a row, and also at night (in a schedule) |
I created a test myself and deleting of
Not officially, but I can make a code change to enable TRACE output of the Terraform AWS provider, which performs the destroy. I created a branch for you where I enabled TRACE output: debug/terraform-provider-trace-output Are you able to checkout that branch and |
Yes I confirm 0.7 doesn't work either. My test with 0.7 was deleting the newly created test resource
yes I will do it, thanks for enabling me to test it |
Here are the logs with trace:
I don't see anything super bad :/ |
Yeah, nothing bad really to see in the TRACE logs. If Terraform says nothing, the resource should actually be deleted. Don't know what's going on there, honestly. Can you manually delete the resources in the AWS console? |
@jckuester I solved the mistery, these resource have termination protection I wonder what the behavior should be in this case to be honest.
Anyway I am already happy to understand this |
I am glad that you could find the issue, @andreamaruccia. Let's keep this issue open, so that we don't forget about it until I have found a way to deal with |
thank you @jckuester, sounds good
thank you @jckuester, sounds good |
I've this config:
running it I get these logs:
and I can still see the cfn stack in the aws console :(
I've tried it with version 0.7 and it seems to work:
The text was updated successfully, but these errors were encountered: