generated from appvia/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
115 lines (92 loc) · 4.3 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
107
108
109
110
111
112
113
114
115
output "connectivity_type" {
description = "The type of connectivity for the transit gateway."
value = var.connectivity_config
}
output "trusted_route_table_id" {
description = "The ID of the trusted route table."
value = local.enable_trusted ? aws_ec2_transit_gateway_route_table.trusted[0].id : null
}
output "trusted_core_route_table_id" {
description = "The ID of the trusted core route table."
value = local.enable_trusted ? aws_ec2_transit_gateway_route_table.trusted_core[0].id : null
}
output "workloads_route_table_id" {
description = "The ID of the workloads route table."
value = local.enable_trusted ? module.tgw.ec2_transit_gateway_association_default_route_table_id : null
}
output "inspection_route_inbound_table_id" {
description = "The ID of the inbound route table for inspection."
value = local.enable_inspection_all ? aws_ec2_transit_gateway_route_table.inspection_return[0].id : null
}
output "egress_vpc_id" {
description = "The ID of the VPC that is used for egress traffic."
value = local.enable_egress ? module.egress_vpc[0].vpc_id : null
}
output "egress_vpc_private_subnet_attributes_by_az" {
description = "The attributes of the egress VPC."
value = local.enable_egress ? module.egress_vpc[0].private_subnet_attributes_by_az : null
}
output "egress_vpc_public_subnet_attributes_by_az" {
description = "The attributes of the egress VPC."
value = local.enable_egress ? module.egress_vpc[0].public_subnet_attributes_by_az : null
}
output "egress_vpc_id_rt_attributes_by_type_by_az" {
description = "The route table attributes of the egress VPC."
value = local.enable_egress ? module.egress_vpc[0].rt_attributes_by_type_by_az : null
}
output "ingress_vpc_id" {
description = "The ID of the VPC that is used for ingress traffic."
value = local.enable_ingress ? module.ingress_vpc[0].vpc_id : null
}
output "ingress_vpc_private_subnet_attributes_by_az" {
description = "The attributes of the ingress VPC."
value = local.enable_ingress ? module.ingress_vpc[0].private_subnet_attributes_by_az : null
}
output "ingress_vpc_public_subnet_attributes_by_az" {
description = "The attributes of the ingress VPC."
value = local.enable_ingress ? module.ingress_vpc[0].public_subnet_attributes_by_az : null
}
output "ingress_vpc_id_rt_attributes_by_type_by_az" {
description = "The route table attributes of the ingress VPC."
value = local.enable_ingress ? module.ingress_vpc[0].rt_attributes_by_type_by_az : null
}
output "endpoints_vpc_id" {
description = "The ID of the VPC that is used for endpoint traffic."
value = local.enable_endpoints ? module.endpoints[0].vpc_id : null
}
output "endpoints_vpc_private_subnet_attributes_by_az" {
description = "The attributes of the endpoints VPC."
value = local.enable_endpoints ? module.endpoints[0].private_subnet_attributes_by_az : null
}
output "endpoints_vpc_id_rt_attributes_by_type_by_az" {
description = "The route table attributes of the endpoints VPC."
value = local.enable_endpoints ? module.endpoints[0].rt_attributes_by_type_by_az : null
}
output "inspection_vpc_id" {
description = "The ID of the VPC that is used for inspection traffic."
value = local.enable_inspection_all ? module.inspection_vpc[0].vpc_id : null
}
output "inspection_vpc_private_subnet_attributes_by_az" {
description = "The attributes of the inspection VPC."
value = local.enable_inspection_all ? module.inspection_vpc[0].private_subnet_attributes_by_az : null
}
output "inspection_vpc_public_subnet_attributes_by_az" {
description = "The attributes of the inspection VPC."
value = local.enable_inspection_all ? module.inspection_vpc[0].public_subnet_attributes_by_az : null
}
output "inspection_vpc_id_rt_attributes_by_type_by_az" {
description = "The route table attributes of the inspection VPC."
value = local.enable_inspection_all ? module.inspection_vpc[0].rt_attributes_by_type_by_az : null
}
output "transit_gateway_id" {
description = "The ID of the transit gateway."
value = module.tgw.ec2_transit_gateway_id
}
output "region" {
description = "The AWS region in which the resources are created."
value = local.region
}
output "account_id" {
description = "The AWS account ID."
value = local.account_id
}