Skip to content

Commit

Permalink
PE-1494
Browse files Browse the repository at this point in the history
  • Loading branch information
spr-mweber3 committed Aug 7, 2023
1 parent fbd4ff6 commit af0675c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .spacelift/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: 1
module_version: 5.1.1
33 changes: 33 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -617,3 +617,36 @@ output "name" {
description = "The name of the VPC specified as argument to this module"
value = var.name
}

################################################################################
# Our own outputs
################################################################################
output "private_subnets_az_names" {
description = "List of AZ names of private subnets"
value = aws_subnet.private[*].availability_zone
}

output "private_subnets_az_ids" {
description = "List of AZ IDs of private subnets"
value = aws_subnet.private[*].availability_zone_id
}

output "public_subnets_az_names" {
description = "List of AZ names of public subnets"
value = aws_subnet.public[*].availability_zone
}

output "public_subnets_az_ids" {
description = "List of AZ IDs of public subnets"
value = aws_subnet.public[*].availability_zone_id
}

output "database_subnets_az_names" {
description = "List of AZ names of database subnets"
value = aws_subnet.database[*].availability_zone
}

output "database_subnets_az_ids" {
description = "List of AZ IDs of database subnets"
value = aws_subnet.database[*].availability_zone_id
}

0 comments on commit af0675c

Please sign in to comment.