cloudfront-waf

dod-iac/cloudfront-waf/aws

Terraform Module HCL AWS

WAF for use with CloudFront

Install
module "cloudfront-waf" {
source = "dod-iac/cloudfront-waf/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-dod-iac-cloudfront-waf-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an WAF Web ACL for use with CloudFront. Since this is a global resource, you can use any provider region. ``hcl module "cloudfront_waf" { source = "dod-iac/cloudfront-waf/aws" name = format("app-%s-%s", var.application, var.environment) metric_name = format("app%s%s", title(var.application), title(var.environment)) allowed_hosts = [var.fqdn] tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` You can then add the WAF to a CloudFront Distribution with web_acl_id = module.cloudfront_waf.web_acl_id. Terraform Version Terraform 0.12. Pin module version to ~> 1.0.0 . Submit pull-requests to master branch. Terraform 0.11 is not supported. License This project constitutes a work of the United States Government and is not subject to dom

Inputs (7)
NameTypeDescriptionDefault
allowed_hostslist(string)List of allowed values for the host header. required
namestringThe name or description of the web ACL. required
metric_namestringThe name or description for the Amazon CloudWatch metric of this web ACL. required
aws_waf_byte_match_set_allowed_hosts_namestringThe name of the aws_waf_byte_match_set used by the rule used for filtering by ho""
aws_waf_rule_allowed_hosts_namestringThe name of the rule used for filtering by host header. Defaults to "[name]-all""
aws_waf_rule_allowed_hosts_metric_namestringThe metric name of the rule used for filtering by host header. Defaults to "[me""
tagsmap(string)A mapping of tags to assign to the WAF Web ACL Resource and WAF Rules.{}
Outputs (1)
web_acl_id — The ID of the WAF WebACL.
Resources (3)
aws_waf_byte_match_setaws_waf_ruleaws_waf_web_acl
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars2
Forks2
Total downloads7.7k
Inputs7
Outputs1
Resources3
LicenseMIT
Namespacedod-iac
Updated