39 lines
801 B
HCL
39 lines
801 B
HCL
output "vpc_id" {
|
|
value = aws_vpc.vpc.id
|
|
}
|
|
|
|
output "vpc-cidr" {
|
|
value = aws_vpc.vpc.cidr_block
|
|
}
|
|
|
|
output "public_subnets" {
|
|
value = aws_subnet.public-subnets.*.cidr_block
|
|
}
|
|
|
|
output "private_subnets" {
|
|
value = aws_subnet.private-subnets.*.cidr_block
|
|
}
|
|
|
|
output "public-subnet-ids" {
|
|
value = aws_subnet.public-subnets.*.id
|
|
}
|
|
|
|
output "private-subnet-ids" {
|
|
value = aws_subnet.private-subnets.*.id
|
|
}
|
|
|
|
output "private-route-table-id" {
|
|
value = aws_route_table.private-route-table.*.id
|
|
}
|
|
|
|
output "public-route-table-id" {
|
|
value = aws_route_table.public-route-table.*.id
|
|
}
|
|
|
|
output "route_tables_for_gateway_endpoints" {
|
|
value = concat(aws_route_table.public-route-table.*.id, aws_route_table.private-route-table.*.id)
|
|
}
|
|
|
|
output "secondary_cidr_blocks" {
|
|
value = var.secondary_cidr_blocks
|
|
} |