-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathoutputs.tf
106 lines (87 loc) · 3.38 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#------------------------------------------------------------------------------
# AWS Virtual Private Network (VPC)
#------------------------------------------------------------------------------
output "vpc_arn" {
description = "Amazon Resource Name (ARN) of VPC"
value = aws_vpc.vpc.arn
}
output "vpc_id" {
description = "The ID of the VPC"
value = aws_vpc.vpc.id
}
output "vpc_instance_tenancy" {
description = "Tenancy of instances spin up within VPC"
value = aws_vpc.vpc.instance_tenancy
}
output "vpc_enable_dns_support" {
description = "Whether or not the VPC has DNS support"
value = aws_vpc.vpc.enable_dns_support
}
output "vpc_enable_network_address_usage_metrics" {
description = "Whether Network Address Usage metrics are enabled for the VPC"
value = aws_vpc.vpc.enable_network_address_usage_metrics
}
output "vpc_enable_dns_hostnames" {
description = "Whether or not the VPC has DNS hostname support"
value = aws_vpc.vpc.enable_dns_hostnames
}
output "vpc_main_route_table_id" {
description = "The ID of the main route table associated with this VPC. Note that you can change a VPC's main route table by using an aws_main_route_table_association."
value = aws_vpc.vpc.main_route_table_id
}
output "vpc_default_network_acl_id" {
description = "The ID of the network ACL created by default on VPC creation"
value = aws_vpc.vpc.default_network_acl_id
}
output "vpc_default_security_group_id" {
description = "The ID of the security group created by default on VPC creation"
value = aws_vpc.vpc.default_security_group_id
}
output "vpc_default_route_table_id" {
description = "The ID of the route table created by default on VPC creation"
value = aws_vpc.vpc.default_route_table_id
}
output "vpc_ipv6_association_id" {
description = "The association ID for the IPv6 CIDR block."
value = aws_vpc.vpc.ipv6_association_id
}
output "vpc_ipv6_cidr_block_network_border_group" {
description = "The Network Border Group Zone name"
value = aws_vpc.vpc.ipv6_cidr_block_network_border_group
}
output "vpc_owner_id" {
description = "The ID of the AWS account that owns the VPC."
value = aws_vpc.vpc.owner_id
}
output "vpc_tags_all" {
description = "A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block."
value = aws_vpc.vpc.tags_all
}
#------------------------------------------------------------------------------
# AWS Internet Gateway
#------------------------------------------------------------------------------
output "internet_gateway_id" {
description = "ID of the generated Internet Gateway"
value = aws_internet_gateway.internet_gw.id
}
#------------------------------------------------------------------------------
# AWS Subnets - Public
#------------------------------------------------------------------------------
output "public_subnets" {
value = aws_subnet.public
}
output "public_subnets_route_tables" {
value = aws_route_table.public
}
output "nat_gws" {
value = aws_nat_gateway.nat
}
#------------------------------------------------------------------------------
# AWS Subnets - Private
#------------------------------------------------------------------------------
output "private_subnets" {
value = aws_subnet.private
}
output "private_subnets_route_tables" {
value = aws_route_table.private
}