trussworks / terraform-aws-wafv2

Creates a WAF using AWS WAFv2 and AWS Managed Rule Sets
https://registry.terraform.io/modules/trussworks/wafv2
Apache License 2.0
103 stars 58 forks source link

Error while doing association with ALB #46

Closed chandankashyap19 closed 3 years ago

chandankashyap19 commented 3 years ago

Hi, Thanks for great work. Today, I tried to play with module and tried to use with ALB. The creation of WAFv2 with few rules got access and also creation of ALB also got succeeded. But during the association of Wafv2 with ALB its starts complaining me the issue. I have used examples/alb/main.tf. The error , I am getting is as below.

eval: *terraform.EvalSequence, err: InvalidParameter: 1 validation error(s) found.
 minimum field size of 20, AssociateWebACLInput.ResourceArn.

I am not able understand the exact error. Pls help.

jsclarridge commented 3 years ago

@chandankashyap19 Could you post a minimal, representative copy of a configuration that's generating the error, as well as the version of Terraform and AWS provider you're using? It's possible there's a misconfiguration where the ALB ARN or Web ACL ARN are getting passed in.