-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
42 lines (35 loc) · 1.05 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
output "vpc_id" {
description = "The ID of the VPC"
value = aws_vpc.this.id
}
output "vpc_arn" {
description = "The ARN of the VPC"
value = aws_vpc.this.arn
}
output "azs" {
value = local.azs
}
output "public_subnets" {
description = "List of IDs of public subnets"
value = [for az, subnet in aws_subnet.public : subnet["id"]]
}
output "private_subnets" {
description = "List of IDs of private subnets"
value = [for az, subnet in aws_subnet.private : subnet["id"]]
}
output "intra_subnets" {
description = "List of IDs of intra subnets"
value = [for az, subnet in aws_subnet.intra : subnet["id"]]
}
output "database_subnets" {
description = "List of IDs of database subnets"
value = [for az, subnet in aws_subnet.database : subnet["id"]]
}
output "vpc_endpoints" {
description = "List of vpc endpoints"
value = { for service, doc in aws_vpc_endpoint.this : service => {
type = doc["vpc_endpoint_type"]
id = doc["id"]
prefix_list_id = doc["prefix_list_id"]
} }
}