https://github.com/babbel/terraform-aws-wafv2-dashboard
Terraform module creating a CloudWatch Dashboard for a WAFv2
https://github.com/babbel/terraform-aws-wafv2-dashboard
aws terraform terraform-module
Last synced: 11 months ago
JSON representation
Terraform module creating a CloudWatch Dashboard for a WAFv2
- Host: GitHub
- URL: https://github.com/babbel/terraform-aws-wafv2-dashboard
- Owner: babbel
- License: mit
- Created: 2021-08-05T08:22:55.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T17:22:55.000Z (over 2 years ago)
- Last Synced: 2023-12-07T18:32:45.233Z (over 2 years ago)
- Topics: aws, terraform, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/babbel/wafv2-dashboard/aws
- Size: 41 KB
- Stars: 4
- Watchers: 39
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# CloudWatch Dashboard for a WAFv2
This modules creates a CloudWatch Dashboard for a WAFv2 showing the overall `AllowedRequests`, as well as `AllowedRequests`, `CountedRequests`, and `BlockedRequests` for each WAFv2 rule.
## Usage
```tf
module "wafv2-dashboard" {
source = "babbel/wafv2-dashboard/aws"
version = "~> 1.1"
wafv2_web_acl = aws_wafv2_web_acl.example
}
```
Please note: If you want to create a dashbaord for a WAFv2 of a CloudFront distribution and if `us-east-1` is not the region of your default AWS provider, you must specify a `providers` map as well:
```tf
module "wafv2-dashboard-example" {
source = "babbel/wafv2-dashboard/aws"
version = "~> 1.1"
providers = {
aws = aws.us-east-1
}
wafv2_web_acl = aws_wafv2_web_acl.example
}
```