Closed cesarmsk closed 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
I could fix the problem. The problem was with the region which was incorrect
Hey @cesarmsk 👋 Thank you for taking the time to raise this, as well as for following up with the solution! Given that you've resolved the issue, we'll close this issue.
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.
Terraform Core Version
1.3.6
AWS Provider Version
4.22.0
Affected Resource(s)
AWS, Cloudfront distribution, WAF ACL with IP set and rule to block all but the listed IPs
Expected Behavior
Web ACL should be associated with the Cloudfront distribution
Actual Behavior
I am trying to configure the whitelist rule for the flashdata waf acl but I am getting this error below which I haven't been able to find any solution on the web yet. The problem is that when the IP Set is created it receives an ARN name that contains slashes ('/') but terraform do not allow this and this arn is required in the ip_set_reference_statement. Please let me know if you know how to solve it:
Message_: "Error reason: The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or slashes., field: RESOURCE_ARN, parameter: arn:aws:wafv2:XX-XXXXXX-X:XXXXXXXX:regional/ipset/XXX-XXXXXXX-dev/XXDDDDDD-XXXX-DDDD-XXDD-XXXXXXXDDDD", Parameter: "arn:aws:wafv2:XX-XXXXXX-X:XXXXXXXX:regional/ipset/XXX-XXXXXXX-dev/XXDDDDDD-XXXX-DDDD-XXDD-XXXXXXXDDDD", Reason: "The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or slashes."
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
#####################
Panic Output
#####################
Important Factoids
#####################
References
I saw a similiar issue (https://github.com/hashicorp/terraform-provider-aws/issues/28753) but I couldn't solve with that solution or didn't get it right
Would you like to implement a fix?
None