I’m trying to link aws wafv2 with the API gateway stage:
resource "aws_wafv2_web_acl_association" "passbird_api_gw_association" {
resource_arn = aws_api_gateway_stage.v2-api-gw-stage.arn
web_acl_arn = aws_wafv2_web_acl.restrict_direct_api_access.arn
}
I’m getting the following error:
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:us-east-1:960614862153:global/webacl/restrict_direct_api_access/b521b199-3b2b-4d6e-a2fd-57fea166d35b",
│ Parameter: "arn:aws:wafv2:us-east-1:960614862153:global/webacl/restrict_direct_api_access/b521b199-3b2b-4d6e-a2fd-57fea166d35b",
│ Reason: "The ARN isn't valid. A valid ARN begins with arn: and includes other information separated by colons or slashes."
My terraform version >=1.0.9