From 5029284af84489733640c4cec27e8e06256b591a Mon Sep 17 00:00:00 2001 From: Leonard Broman <129965573+lebroman@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:53:01 +0200 Subject: [PATCH] Added a detailed list with the private subnets (#57) Co-authored-by: SadriG91 <74971461+SadriG91@users.noreply.github.com> --- outputs.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/outputs.tf b/outputs.tf index 5e439a1..3c0d433 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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