Skip to content

epomatti/aws-cloudfront-waf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS CloudFront WAF

CloudFront with WAF serving S3 and ELB origins.

Create the infrastructure

Create the .auto.tfvars:

cloudfront_price_class = "PriceClass_100"
waf_country_codes      = ["US", "BR"]
waf_rate_limit         = 1000

Apply the infrastructure:

terraform init
terraform apply -auto-approve

Origins will be available for testing:

Standard logs (access logs) will be enabled by default:


Clean-up

terraform destroy -auto-approve

Releases

No releases published

Packages

No packages published