-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
WAF V1 Provider #22378
Comments
|
@JeremyPDC |
I have not seen a fix. If you lock your version of terraform it will work. Though probably not ideal. This is what ours is locked at for the moment. terraform {
required_providers {
aws = {
source = "hashicorp/aws"
# This needs to be fixed due to a bug found in the waf provider code
version = "3.61.0"
}
}
} |
Forcing version to stay at 3.61.0 worked smoothly. I was able to get ipset, rule, rule group and web-acl successfully. Strangely, I was not able to visualize created resources on AWS Console. Later realized that WAFv2 will not display it as it has different set of APIs. Out of curiosity checked in WAF Classic as well, couldn't find any resources on Console UI. Anyways, I moved to WAFv2. Worked OK with 3.73.0. Thanks @JeremyPDC for quick response. Have a good weekend! |
Related: #19613. |
We're seeing this with 3.69.0 as well. |
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. |
Using terraform version 1.0.11 and provider release 3.70.0.
When adding a new WEB ACL using WAF v1.
Resources used are the following.
resource "aws_wafregional_byte_match_set"
resource "aws_wafregional_rule"
resource "aws_wafregional_web_acl"
Plan worked fine but when running apply saw the following error.
https://gist.github.com/JeremyPDC/443f8b5b142a581f4166f65b5fb3387c
Looking into this it appears to be a problem with the following.
https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/waf/helpers.go#L274
Fixed the provider in our terraform to version 3.61.0 which I think moves the code back to this.
Priority: aws.Int64(int64(rule["priority"].(int))),
from this
Priority: aws.Int64(rule["priority"].(int64)),
That fixed the problem.
The text was updated successfully, but these errors were encountered: