https://github.com/geekcell/terraform-aws-cloudfront-waf
Terraform module to provision an AWS Cloudfront Web Application Firewall.
https://github.com/geekcell/terraform-aws-cloudfront-waf
aws cloudfront terraform terraform-module waf
Last synced: 2 months ago
JSON representation
Terraform module to provision an AWS Cloudfront Web Application Firewall.
- Host: GitHub
- URL: https://github.com/geekcell/terraform-aws-cloudfront-waf
- Owner: geekcell
- License: apache-2.0
- Created: 2023-07-10T07:02:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T12:21:06.000Z (about 3 years ago)
- Last Synced: 2025-03-01T18:48:52.059Z (over 1 year ago)
- Topics: aws, cloudfront, terraform, terraform-module, waf
- Language: HCL
- Homepage: https://www.geekcell.io
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.geekcell.io/)
# Terraform AWS CloudFront Web Application Firewall
Terraform module to create a CloudFront Web Application Firewall. Please note, since this is a CloudFront WebACL,
it is mandatory to run in the "us-east-1" region. Check the example.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | Friendly name of the ACL. | `string` | n/a | yes |
| [tags](#input\_tags) | Tags to add to the Resources. | `map(any)` | `{}` | no |
## Outputs
| Name | Description |
|------|-------------|
| [arn](#output\_arn) | The ARN of the ACL. |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 4.36 |
## Resources
- resource.aws_cloudwatch_log_resource_policy.main (cloudwatch.tf#13)
- resource.aws_wafv2_web_acl.main (main.tf#7)
- resource.aws_wafv2_web_acl_logging_configuration.main (cloudwatch.tf#8)
- data source.aws_caller_identity.current (cloudwatch.tf#59)
- data source.aws_iam_policy_document.main (cloudwatch.tf#18)
- data source.aws_region.current (cloudwatch.tf#57)
# Examples
### Complete
```hcl
module "example" {
source = "../../"
name = "my-waf"
providers = {
aws = aws.us-east-1
}
}
provider "aws" {
allowed_account_ids = ["1234567890"]
profile = "AdministratorAccess-1234567890"
region = "us-east-1"
alias = "us-east-1"
}
```