Skip to content

Commit

Permalink
add hc port of hc checked backends to hc-firewall
Browse files Browse the repository at this point in the history
Signed-off-by: Naseem <naseem@transit.app>
  • Loading branch information
Naseem committed Nov 24, 2020
1 parent 73f200b commit 5a1838e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions autogen/main.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ resource "google_compute_firewall" "default-hc" {
target_service_accounts = length(var.target_service_accounts) > 0 ? var.target_service_accounts : null

dynamic "allow" {
for_each = var.backends
for_each = local.health_checked_backends
content {
protocol = "tcp"
ports = [allow.value.port]
ports = [lookup(allow.value["health_check"], "port", null)]
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ resource "google_compute_firewall" "default-hc" {
target_service_accounts = length(var.target_service_accounts) > 0 ? var.target_service_accounts : null

dynamic "allow" {
for_each = var.backends
for_each = local.health_checked_backends
content {
protocol = "tcp"
ports = [allow.value.port]
ports = [lookup(allow.value["health_check"], "port", null)]
}
}
}
4 changes: 2 additions & 2 deletions modules/dynamic_backends/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ resource "google_compute_firewall" "default-hc" {
target_service_accounts = length(var.target_service_accounts) > 0 ? var.target_service_accounts : null

dynamic "allow" {
for_each = var.backends
for_each = local.health_checked_backends
content {
protocol = "tcp"
ports = [allow.value.port]
ports = [lookup(allow.value["health_check"], "port", null)]
}
}
}

0 comments on commit 5a1838e

Please sign in to comment.