Deleting Stack Fails while trying to delete Reputation Lists
See original GitHub issueAfter deploying the updated WAF template to test out some changes, I decided to delete it. This failed when it got to WAFReputationListsSet1
and WAFReputationListsSet2
with the message Operation would result in exceeding resource limits
.
Although I can’t find a limit for this in the documentation or AWS WAF Limits, the rumour online is that there is a limit of 1000 CIDRs per create, update or delete. So it would appear that CloudFormation when going to delete the IPSet deletes all of the IPs in the IPSet first, then deletes the IPSet itself, which is a problem because the reputation lists seem to have over 1000 ips in them.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Deleting Stack Fails while trying to delete Reputation Lists #14
After deploying the updated WAF template to test out some changes, I decided to delete it. This failed when it got to WAFReputationListsSet1 ......
Read more >How do I delete an AWS CloudFormation stack that's stuck in ...
Open the AWS CloudFormation console. · Choose the stack that's stuck in DELETE_FAILED status. · Choose Delete. · In the window, select all...
Read more >Redeem reputation for deleted negative answers?
When you delete an answer, you are making a conscious decision that the answer is not worth it's current place in StackOverflow.
Read more >Can we please clear misunderstanding that deleting old ...
No, we don't avoid deleting things just to prevent someone from losing reputation. I don't care about preserving someone's reputation.
Read more >Why I can't delete a folder? - Ask Ubuntu
In Git Bash, my working directory was one of the ones I was trying to delete. I backed out of it and then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone else who hits this… here’s a quick script to clean things up. Designed to work from the CLI vs. lambda. Note, designed to work with waf not waf-regional (eg. alb vs. cloudfront wafs)
I ran into this problem today with v2.3.0. Deleting the stack would fail to delete the regional IP Reputation Lists Set.
Here’s how I fixed it:
After I did this, I was able to delete the CloudFormation stack without a rate limit error. AFAICT, this is a manual attempt at what @alfaro28 suggested above