Skip to content

Commit

Permalink
Added a detailed list with the private subnets (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: SadriG91 <[email protected]>
  • Loading branch information
lebroman and SadriG91 authored Oct 1, 2024
1 parent a9fd691 commit 5029284
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ output "private_subnet_ids" {
value = aws_subnet.private[*].id
}

output "private_subnets" {
description = "The private subnets."
value = [
for subnet in aws_subnet.private : {
id = subnet.id
cidr_block = subnet.cidr_block
availability_zone = subnet.availability_zone
availability_zone_id = subnet.availability_zone_id
}
]
}

output "main_route_table_id" {
description = "The ID of the main route table."
value = aws_vpc.main.main_route_table_id
Expand Down

0 comments on commit 5029284

Please sign in to comment.