Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The example provided for the WAF module gives error when executed using terraform. #20

Open
askanonymous opened this issue Feb 16, 2023 · 1 comment
Labels
bug 🐛 An issue with the system

Comments

@askanonymous
Copy link

askanonymous commented 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 :

image

@askanonymous askanonymous added the bug 🐛 An issue with the system label Feb 16, 2023
@askanonymous 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
@paolodm
Copy link

paolodm commented Feb 24, 2023

Also seeing the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

2 participants