-
Notifications
You must be signed in to change notification settings - Fork 4
/
outputs.tf
184 lines (146 loc) · 5.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
output "name" {
value = var.create ? aws_ecs_cluster.cluster[0].name : null
description = "Cluster name"
}
output "arn" {
value = var.create ? aws_ecs_cluster.cluster[0].arn : null
description = "Cluster ARN"
}
output "metrics" {
value = local.metrics
description = "ECS cluster Cloudwatch metrics, see [metrics.tf](./metrics.tf) for details"
}
output "widgets" {
value = local.widgets
description = "ECS cluster Cloudwatch dashboard widgets, see [widgets.tf](./widgets.tf) for details"
}
# network outputs
output "vpc_id" {
value = module.network.vpc_id
description = "The ID of the VPC"
}
output "vpc_block" {
value = module.network.vpc_block
description = "The CIDR block of the VPC"
}
output "internet_gateway_id" {
value = module.network.internet_gateway_id
description = "The ID of the Internet Gateway"
}
output "private_subnet_ids" {
value = module.network.private_subnet_ids
description = "The IDs of private subnets"
}
output "private_blocks" {
value = module.network.private_blocks
description = "The CIDR blocks of private subnets"
}
output "public_subnet_ids" {
value = module.network.public_subnet_ids
description = "The IDs of public subnets"
}
output "public_blocks" {
value = module.network.public_blocks
description = "The CIDR blocks of public subnets"
}
output "public_gateway_ips" {
value = module.network.public_gateway_ips
description = "The public IP addresses of nat gateways used for outbound traffic"
}
output "availability_zones" {
value = module.network.availability_zones
description = "The availability zones in which corresponding public and private subnets were created"
}
output "load_balancer_id" {
value = module.network.load_balancer_id
description = "The ID of the Application Load Balancer"
}
output "load_balancer_arn" {
value = module.network.load_balancer_arn
description = "The ARN of the Application Load Balancer"
}
output "load_balancer_domain" {
value = module.network.load_balancer_domain
description = "The domain name of the Application Load Balancer"
}
output "load_balancer_zone_id" {
value = module.network.load_balancer_zone_id
description = "The canonical hosted zone ID of the Application Load Balancer (to be used in a Route 53 Alias record)"
}
output "load_balancer_security_group_id" {
value = module.network.load_balancer_security_group_id
description = "The ID of the Application Load Balancer's Security Group"
}
output "load_balancer_security_group_arn" {
value = module.network.load_balancer_security_group_arn
description = "The ARN of the Application Load Balancer's Security Group"
}
output "http_listener_arn" {
value = module.network.http_listener_arn
description = "The ARN of the ALB's HTTP Listener"
}
output "https_listener_arn" {
value = module.network.https_listener_arn
description = "The ARN of the ALB's HTTPS Listener"
}
output "hosts_security_group_id" {
value = module.network.hosts_security_group_id
description = "The ID of the Security Group which should be used by host instances"
}
output "hosts_security_group_arn" {
value = module.network.hosts_security_group_arn
description = "The ARN of the Security Group which should be used by host instances"
}
output "lb_metrics" {
value = module.network.lb_metrics
description = "Load balancer related Cloudwatch metrics, see [network/metrics.tf](./network/metrics.tf)"
}
output "lb_widgets" {
value = module.network.lb_widgets
description = "Load balancer related Cloudwatch dashboard widgets, see [network/widgets.tf](./network/widgets.tf)"
}
output "nat_instance_metrics" {
value = module.network.nat_instance_metrics
description = "NAT instance related Cloudwatch metrics, see [network/metrics.tf](./network/metrics.tf)"
}
output "nat_instance_widgets" {
value = module.network.nat_instance_widgets
description = "NAT instance related Cloudwatch dashboard widgets, see [network/widgets.tf](./network/widgets.tf)"
}
output "nat_gateway_metrics" {
value = module.network.nat_gateway_metrics
description = "NAT gateway related Cloudwatch metrics, see [network/metrics.tf](./network/metrics.tf)"
}
output "nat_gateway_widgets" {
value = module.network.nat_gateway_widgets
description = "NAT gateway related Cloudwatch dashboard widgets, see [network/widgets.tf](./network/widgets.tf)"
}
# access outputs
output "host_role_name" {
value = module.access.host_role_name
description = "ECS host role name"
}
output "host_role_arn" {
value = module.access.host_role_arn
description = "ECS host role ARN"
}
output "host_profile_name" {
value = module.access.host_profile_name
description = "ECS host instance profile name"
}
output "host_profile_id" {
value = module.access.host_profile_id
description = "ECS host instance profile ID"
}
output "host_profile_arn" {
value = module.access.host_profile_arn
description = "ECS host instance profile ARN"
}
output "web_service_role_name" {
value = module.access.web_service_role_name
description = "ECS web service task role name"
}
output "web_service_role_arn" {
value = module.access.web_service_role_arn
description = "ECS web service task role ARN"
}