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
Below are the list of errors seen when we do a terraform plan.
$ terraform plan
var.region
Enter a value: ap-south-1
╷
│ Warning: Argument is deprecated
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ....\rules.tf line 85, in resource "aws_wafv2_web_acl" "default":
│ 85: resource "aws_wafv2_web_acl" "default" {
│
│ Use rule_action_override instead
│ 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 88, in resource "aws_wafv2_web_acl" "default":
│ 88: 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 88, in resource "aws_wafv2_web_acl" "default":
│ 88: name = module.this.id
│
╵
╷
│ Error: expected length of visibility_config.0.metric_name to be in the range (1 - 128), got
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ....\rules.tf line 107, in resource "aws_wafv2_web_acl" "default":
│ 107: metric_name = lookup(var.visibility_config, "metric_name", module.this.id)
│
╵
╷
│ Error: invalid value for visibility_config.0.metric_name (must contain only alphanumeric hyphen and underscore characters)
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ....\rules.tf line 107, in resource "aws_wafv2_web_acl" "default":
│ 107: metric_name = lookup(var.visibility_config, "metric_name", module.this.id)
Attaching screenshots :
The text was updated successfully, but these errors were encountered:
askanonymous
changed the title
Error: expected length of name to be in the range (1 - 128), got :The example provided for the WAF module gives error when executed using terraform.
The example provided for the WAF module gives error when executed using terraform.
Feb 16, 2023
Below are the list of errors seen when we do a terraform plan.
$ terraform plan
var.region
Enter a value: ap-south-1
╷
│ Warning: Argument is deprecated
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ....\rules.tf line 85, in resource "aws_wafv2_web_acl" "default":
│ 85: resource "aws_wafv2_web_acl" "default" {
│
│ Use rule_action_override instead
│ 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 88, in resource "aws_wafv2_web_acl" "default":
│ 88: 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 88, in resource "aws_wafv2_web_acl" "default":
│ 88: name = module.this.id
│
╵
╷
│ Error: expected length of visibility_config.0.metric_name to be in the range (1 - 128), got
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ....\rules.tf line 107, in resource "aws_wafv2_web_acl" "default":
│ 107: metric_name = lookup(var.visibility_config, "metric_name", module.this.id)
│
╵
╷
│ Error: invalid value for visibility_config.0.metric_name (must contain only alphanumeric hyphen and underscore characters)
│
│ with module.waf.aws_wafv2_web_acl.default[0],
│ on ....\rules.tf line 107, in resource "aws_wafv2_web_acl" "default":
│ 107: metric_name = lookup(var.visibility_config, "metric_name", module.this.id)
Attaching screenshots :
The text was updated successfully, but these errors were encountered: