-
-
Notifications
You must be signed in to change notification settings - Fork 195
/
outputs.tf
91 lines (76 loc) · 2.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
output "vpc_id" {
value = join("", aws_vpc.default.*.id)
description = "The ID of the VPC"
}
output "vpc_arn" {
value = join("", aws_vpc.default.*.arn)
description = "The ARN of the VPC"
}
output "vpc_cidr_block" {
value = join("", aws_vpc.default.*.cidr_block)
description = "The primary IPv4 CIDR block of the VPC"
}
output "vpc_main_route_table_id" {
value = join("", aws_vpc.default.*.main_route_table_id)
description = "The ID of the main route table associated with this VPC"
}
output "vpc_default_network_acl_id" {
value = join("", aws_vpc.default.*.default_network_acl_id)
description = "The ID of the network ACL created by default on VPC creation"
}
output "vpc_default_security_group_id" {
value = join("", aws_vpc.default.*.default_security_group_id)
description = "The ID of the security group created by default on VPC creation"
}
output "vpc_default_route_table_id" {
value = join("", aws_vpc.default.*.default_route_table_id)
description = "The ID of the route table created by default on VPC creation"
}
output "vpc_ipv6_association_id" {
value = join("", aws_vpc.default.*.ipv6_association_id)
description = "The association ID for the primary IPv6 CIDR block"
}
output "vpc_ipv6_cidr_block" {
value = join("", aws_vpc.default.*.ipv6_cidr_block)
description = "The primary IPv6 CIDR block"
}
output "additional_cidr_blocks" {
description = "A list of the additional IPv4 CIDR blocks associated with the VPC"
value = [
for i in aws_vpc_ipv4_cidr_block_association.default :
i.cidr_block
]
}
output "additional_cidr_blocks_to_association_ids" {
description = "A map of the additional IPv4 CIDR blocks to VPC CIDR association IDs"
value = {
for i in aws_vpc_ipv4_cidr_block_association.default :
i.cidr_block => i.id
}
}
output "additional_ipv6_cidr_blocks" {
description = "A list of the additional IPv6 CIDR blocks associated with the VPC"
value = [
for i in aws_vpc_ipv6_cidr_block_association.default :
i.ipv6_cidr_block
]
}
output "additional_ipv6_cidr_blocks_to_association_ids" {
description = "A map of the additional IPv6 CIDR blocks to VPC CIDR association IDs"
value = {
for i in aws_vpc_ipv6_cidr_block_association.default :
i.ipv6_cidr_block => i.id
}
}
output "ipv6_cidr_block_network_border_group" {
value = join("", aws_vpc.default.*.ipv6_cidr_block_network_border_group)
description = "The IPv6 Network Border Group Zone name"
}
output "igw_id" {
value = join("", aws_internet_gateway.default.*.id)
description = "The ID of the Internet Gateway"
}
output "ipv6_egress_only_igw_id" {
value = join("", aws_egress_only_internet_gateway.default.*.id)
description = "The ID of the egress-only Internet Gateway"
}