Giter Club home page Giter Club logo

Comments (4)

dynamike avatar dynamike commented on September 23, 2024

Can you add a little more detail about how you are using the module?

from terraform-aws-waf.

ismail0352 avatar ismail0352 commented on September 23, 2024

I don't know how but tried it this morning. And it works.

from terraform-aws-waf.

ismail0352 avatar ismail0352 commented on September 23, 2024

I am reopening this issue.
Today morning I got it. I am not sure the reason why it is happening, but here the code that I am using.

module "waf" {
  source = "github.com/trussworks/terraform-aws-waf"

  alb_arn                             = module.alb.this_lb_arn
  associate_alb                       = true
  blocked_path_prefixes               = ["/admin", "/password"]
  allowed_hosts                       = ["apples", "oranges"]
  wafregional_rule_f5_id              = ""
  web_acl_metric_name                 = "prod_alb_acl_metric_name"
  web_acl_name                        = "prod_alb_acl"
}

Here is the error message received:

Error: WAFDisallowedNameException: The specified name is not permitted.

  on .terraform/modules/waf/main.tf line 46, in resource "aws_wafregional_rule" "allowed_hosts":
  46: resource "aws_wafregional_rule" "allowed_hosts" {



Error: WAFDisallowedNameException: The specified name is not permitted.

  on .terraform/modules/waf/main.tf line 81, in resource "aws_wafregional_rule" "blocked_path_prefixes":
  81: resource "aws_wafregional_rule" "blocked_path_prefixes" {

Terraform version: Terraform v0.12.16

from terraform-aws-waf.

dynamike avatar dynamike commented on September 23, 2024

This is likely due to the character requirements in the web_acl_name. They don't allow _

from terraform-aws-waf.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.