You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
675 B
HCL
28 lines
675 B
HCL
output "default-vpc" {
|
|
value = data.aws_vpc.default
|
|
}
|
|
|
|
output "default-sg" {
|
|
value = data.aws_security_group.default
|
|
}
|
|
|
|
output "subnets" {
|
|
description = "An array of all subnets in default-vpc."
|
|
value = data.aws_subnet.subnets
|
|
}
|
|
|
|
output "one-subnet-per-az" {
|
|
description = "An array of subnets that selects 1 subnet per az."
|
|
value = [for k,v in local.az-to-subnets : v[0]]
|
|
}
|
|
|
|
output "subnet-by-name" {
|
|
description = "A map of subnet name to subnet resource."
|
|
value = data.aws_subnet.subnet-by-name
|
|
}
|
|
|
|
output "az-to-subnets" {
|
|
description = "A map of availability zone to array of subnets that are in thet availability zone."
|
|
value = local.az-to-subnets
|
|
}
|