-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove references to tags in outputs The AZ subnets are indexed by the count parameter. Since the count parameter is the same for all resources the ordering will be maintained. Hence the double check for AZ tags is redundant. * Regenerate docs
- Loading branch information
1 parent
cd20b06
commit 5676691
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
output "az_subnet_ids" { | ||
value = "${zipmap(var.availability_zones, matchkeys(coalescelist(aws_subnet.private.*.id, aws_subnet.public.*.id), coalescelist(aws_subnet.private.*.tags.AZ, aws_subnet.public.*.tags.AZ), var.availability_zones))}" | ||
value = "${zipmap(var.availability_zones, coalescelist(aws_subnet.private.*.id, aws_subnet.public.*.id))}" | ||
description = "Map of AZ names to subnet IDs" | ||
} | ||
|
||
output "az_route_table_ids" { | ||
value = "${zipmap(var.availability_zones, matchkeys(coalescelist(aws_route_table.private.*.id, aws_route_table.public.*.id), coalescelist(aws_route_table.private.*.tags.AZ, aws_route_table.public.*.tags.AZ), var.availability_zones))}" | ||
value = "${zipmap(var.availability_zones, coalescelist(aws_route_table.private.*.id, aws_route_table.public.*.id))}" | ||
description = " Map of AZ names to Route Table IDs" | ||
} | ||
|
||
output "az_ngw_ids" { | ||
value = "${zipmap(var.availability_zones, coalescelist(matchkeys(aws_nat_gateway.public.*.id, aws_nat_gateway.public.*.tags.AZ, var.availability_zones), local.dummy_az_ngw_ids))}" | ||
value = "${zipmap(var.availability_zones, coalescelist(aws_nat_gateway.public.*.id, local.dummy_az_ngw_ids))}" | ||
description = "Map of AZ names to NAT Gateway IDs (only for public subnets)" | ||
} |