Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_wafv2_web_acl.main resource
aws_wafv2_web_acl_association.this resource

Inputs

Name Description Type Default Required
custom_rules Optional list of additional custom rules to include in the WAF
list(object({
name = string
priority = number
action = string # "allow", "block", or "count"
statement = object({
ip_set_reference_statement = optional(object({
arn = string
}))
geo_match_statement = optional(object({
country_codes = list(string)
}))
rate_based_statement = optional(object({
limit = number
aggregate_key_type = string
scope_down_statement = optional(object({
# Add scope down statement fields as needed
}))
}))
byte_match_statement = optional(object({
search_string = string
positional_constraint = string
field_to_match = object({
uri_path = optional(bool)
query_string = optional(bool)
single_header = optional(object({
name = string
}))
})
text_transformation = object({
priority = number
type = string
})
}))
})
visibility_config = optional(object({
sampled_requests_enabled = optional(bool, true)
cloudwatch_metrics_enabled = optional(bool, true)
metric_name = optional(string)
}))
}))
[] no
environment n/a string n/a yes
project_name n/a string n/a yes
resource_arns List of resource ARNs to associate this WAF with (e.g., ALB or API Gateway) list(string) [] no
scope n/a string "REGIONAL" no

Outputs

Name Description
firewall_arn The ARN of the WAF resource

About

Terraform module for setting up WAF

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages