Skip to content

Commit

Permalink
fix: The default privatelink and allowed cidrs dont work as is
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpanzella committed Feb 13, 2025
1 parent ddeacc5 commit 85e5037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module "cloud_nat" {
}

locals {
allowed_inbound_cidrs = var.create_private_link ? concat(var.allowed_inbound_cidrs, ["${module.cloud_nat[0].cloudnat_lb_proxy_ip}/32"]) : var.allowed_inbound_cidrs
allowed_inbound_cidrs = var.create_private_link && var.allowed_inbound_cidrs[0] != "*" ? concat(var.allowed_inbound_cidrs, ["${module.cloud_nat[0].cloudnat_lb_proxy_ip}/32"]) : var.allowed_inbound_cidrs
}

module "app_lb" {
Expand Down

0 comments on commit 85e5037

Please sign in to comment.