Skip to content

Commit

Permalink
DP-1002 Exclude WAF from the Orchestrator account
Browse files Browse the repository at this point in the history
  • Loading branch information
webit4me committed Dec 12, 2024
1 parent 81c083c commit d1968e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terragrunt/modules/core-networking/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variable "environment" {
description = "The environment we are provisioning"
type = string
}

variable "is_production" {
description = "Indicates whether the target account is configured with production-level settings"
type = bool
Expand Down
2 changes: 2 additions & 0 deletions terragrunt/modules/core-networking/waf.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
resource "aws_wafv2_web_acl" "this" {
count = var.environment != "orchestrator" ? 1 : 0

name = "${local.name_prefix}-acl"
description = "${local.name_prefix} Web ACL"
scope = "REGIONAL" # "CLOUDFRONT" N.Virginia
Expand Down

0 comments on commit d1968e0

Please sign in to comment.