Projects

File outputs.tf:

# output for the first public subnet in the index
output "public_subnets-1" {
  value       = aws_subnet.public-subnets[0].id
  description = "The first public subnet in the subnets"
}

# output for the second public subnet in the index
output "public_subnets-2" {
  value       = aws_subnet.public-subnets[1].id
  description = "The first public subnet"
}

# output for the first private subnet in the index
output "private_subnets-1" {
  value       = aws_subnet.private-subnets[0].id
  descripti...
Learn More