-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
44 lines (36 loc) · 1.23 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
43
44
output "id" {
description = "The VPC ID"
value = aws_vpc.this.id
}
output "public_subnet_ids" {
description = "Public subnet IDs"
value = [for key, value in local.internet_gw_routes : aws_subnet.this[key].id]
}
output "private_subnet_ids" {
description = "Private subnet IDs"
value = [for key, value in local.nat_gw_routes : aws_subnet.this[key].id]
}
output "vpc_cidr" {
description = "The VPC CIDR block"
value = aws_vpc.this.cidr_block
}
output "default_route_table_id" {
description = "The Default Route Table ID for the VPC"
value = aws_vpc.this.default_route_table_id
}
output "main_route_table_id" {
description = "The Main Route Table ID for the VPC"
value = aws_vpc.this.main_route_table_id
}
output "vpn_endpoint_arn" {
value = [for endpoint in aws_vpc_endpoint.this : endpoint.arn]
description = "The ARN of the Client VPN Endpoint Connection."
}
output "igw_id" {
description = "Internet gateway ID for the VPC"
value = var.create_internet_geteway ? aws_internet_gateway.this[0].id : null
}
output "vpc_default_network_acl_id" {
description = "The ID of the network ACL created by default on VPC creation"
value = aws_vpc.this.default_network_acl_id
}