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 6793ec5 commit 891ba1aCopy full SHA for 891ba1a
nat-gateway.tf
@@ -11,7 +11,7 @@ resource "aws_nat_gateway" "default" {
11
count = local.nat_gateway_enabled ? local.nat_count : 0
12
13
allocation_id = local.nat_eip_allocations[count.index]
14
- subnet_id = aws_subnet.public[count.index].id
+ subnet_id = local.public_enabled ? aws_subnet.public[count.index].id : aws_subnet.private[count.index].id
15
16
tags = merge(
17
module.nat_label.tags,
0 commit comments