Skip to content

Commit

Permalink
metric_name prefixed with WAF name (#10)
Browse files Browse the repository at this point in the history
* metric_name prefixed with WAF name

* removetenantvars
  • Loading branch information
ukho-cfreeman authored Feb 19, 2025
1 parent 8bf865d commit ddaed42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "aws_wafv2_web_acl" "this" {

visibility_config {
cloudwatch_metrics_enabled = false
metric_name = "static-site-${var.tenant_vars.product}-${var.tenant_vars.component}-AWSManagedCommonRuleSet-metric"
metric_name = "${var.waf_acl_name}-AWSManagedCommonRuleSet-metric"
sampled_requests_enabled = false
}
}
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,3 @@ variable "tags" {
type = map(string)
default = {}
}

variable "tenant_vars" {
description = "A map of values specific to tenant"
type = any
default = {}
}

0 comments on commit ddaed42

Please sign in to comment.