You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the examples/complete scripts but facing the following error:
Terraform planned the following actions, but then encountered a problem:# module.waf.aws_wafv2_ip_set.default["rule-110-ip-set"] will be created+resource"aws_wafv2_ip_set""default" {
+addresses=[
+"17.0.0.0/8",
]
+arn=(known after apply)
+id=(known after apply)
+ip_address_version="IPV4"+lock_token=(known after apply)
+name="rule-110-ip-set"+scope="REGIONAL"+tags_all=(known after apply)
}
Plan:1 to add, 0 to change, 0 to destroy.
╷
│ Error: expected length of name to be in the range (1-128), got
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ../../rules.tf line 96, in resource "aws_wafv2_web_acl""default":
│ 96:name=module.this.id
│
╵
╷
│ Error: invalid value for name (must contain only alphanumeric hyphen and underscore characters)
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ../../rules.tf line 96, in resource "aws_wafv2_web_acl""default":
│ 96:name=module.this.id
│
╵
Adding the name variable no issues occur:
module"waf" {
source="../.."name="test-waf"
Expected Behavior
The example should run without issues.
Steps to Reproduce
git clone git@github.com:terraform-aws-modules/terraform-aws-alb.git
cd terraform-aws-waf/examples/complete
terraform init
terraform apply
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
│ Error: expected length of name to be in the range (1 - 128), got
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on .terraform/modules/waf/rules.tf line 98, in resource "aws_wafv2_web_acl" "default":
│ 98: name = module.this.id
Describe the Bug
I'm trying to run the examples/complete scripts but facing the following error:
Adding the
name
variable no issues occur:Expected Behavior
The example should run without issues.
Steps to Reproduce
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: