-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Large aws_waf_ipset resources cannot be deleted #833
Comments
I have the same issue, but updating an IPset with 9000 new entries. Plan output:
Apply output:
|
So, you can create an ipset with up to 10,000 ips. However you can only add/remove 1000 at a time with the AWS API (see AWS support message below). We should update this issue to request that Related to: amazon-archives/aws-waf-sample#8 AWS support:
|
I can confirm this. Also very easy to reproduce with api tools:
If waf.json contains < 1000 addresses it works, if > it is not. I can import 1600 addresses by splitting list to 2 and running command 2 times. I already requested information from AWS support to see if it is |
Actually it is documented in the api docs:
|
Bug fix pull request submitted: #5588 |
The fix for this has been merged into master and will release with version 1.33.0 of the AWS provider, likely later this week. 👍 |
This has been released in version 1.33.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @longwave as hashicorp/terraform#15146. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
Terraform v0.9.6
Affected Resource(s)
Terraform Configuration Files
in conjunction with the Lambda function from https://github.com/awslabs/aws-waf-sample/tree/master/waf-reputation-lists/lambda
Expected Behavior
A very large IP set that is no longer required should be deleted.
Actual Behavior
The IP set is not deleted and the following error is reported:
Steps to Reproduce
WAF IP sets can now contain 10,000 records but the AWS API only allows 1,000 to be created, updated or deleted in a single call.
This particular WAF IP set was built as empty with Terraform and then filled with the sample AWS Lambda function from https://github.com/awslabs/aws-waf-sample/tree/master/waf-reputation-lists/lambda, modified to support the new AWS limits via the comments in amazon-archives/aws-waf-sample#8. It was then no longer required so I removed the resource from the Terraform config and ran
terraform apply
which should have destroyed it, but I got the above error.There is presumably a similar bug if you attempt to create an IP set with over 1,000 records directly in Terraform.
The text was updated successfully, but these errors were encountered: