We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1665e77 commit 238caf9Copy full SHA for 238caf9
nat-instance.tf
@@ -10,7 +10,7 @@ module "nat_instance_label" {
10
locals {
11
cidr_block = var.cidr_block != "" ? var.cidr_block : join("", data.aws_vpc.default.*.cidr_block)
12
nat_instance_enabled = var.nat_instance_enabled ? 1 : 0
13
- nat_instance_count = var.nat_instance_enabled && ! local.use_existing_eips ? length(var.availability_zones) : 0
+ nat_instance_count = var.nat_instance_enabled ? length(var.availability_zones) : 0
14
nat_instance_eip_count = local.use_existing_eips ? 0 : local.nat_instance_count
15
instance_eip_allocations = local.use_existing_eips ? data.aws_eip.nat_ips.*.id : aws_eip.nat_instance.*.id
16
}
0 commit comments