I’m pretty new to Terraform and I’ve been trying to build a WAFv2 web acl with little success.
I’ve got regional working ok but when I change scope=regional to cloudfront I get the following error:
Error: Error creating WAFv2 WebACL: WAFInvalidParameterException: Error reason: The scope is not valid., field: SCOPE_VALUE, parameter: CLOUDFRONT
Message_: “Error reason: The scope is not valid., field: SCOPE_VALUE, parameter: CLOUDFRONT”,
Reason: “The scope is not valid.”
I’ve specified the region in my provider.tf and I can’t add the line under scope as that errors.
I’m running the latest Terraform and AWS provider.
Could anyone help me with this please as I’ve been trying for a few days with no joy?