Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Route table outputs #47

Merged
merged 2 commits into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws/container-linux/kubernetes/controllers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ EOF
}

# network
subnet_id = aws_subnet.private.*.id[count.index]
subnet_id = element(aws_subnet.private.*.id, count.index)
vpc_security_group_ids = [
aws_security_group.controller.id,
aws_security_group.bastion_internal.id
Expand Down
14 changes: 7 additions & 7 deletions aws/container-linux/kubernetes/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,22 @@ output "nat_ips" {

output "private_route_tables" {
value = aws_route_table.private.*.id
description = "ID of the private route table that can be used to add additional private routes"
description = "IDs of the private route tables that can be used to add additional private routes"
}

output "private_route_tables_map" {
value = aws_route_table.private
description = "Map of private route table resource IDs to aws_route_table objects, suitable for use in for_each"
output "private_route_tables_count" {
value = length(aws_route_table.private)
description = "Number of private route tables that are created"
}

output "public_route_tables" {
value = aws_route_table.public.*.id
description = "IDs of the public route tables"
}

output "public_route_tables_map" {
value = aws_route_table.public
description = "Map of public route table resource IDs to aws_route_table objects, suitable for use in for_each"
output "public_route_tables_count" {
value = length(aws_route_table.public)
description = "Number of public route tables that are created"
}

output "depends_id" {
Expand Down