-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
201 lines (160 loc) · 5.75 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
## EC2
output "launch_configuration_id" {
description = "The ID of the launch configuration"
value = module.auto-scaling.launch_configuration_id
}
output "launch_configuration_arn" {
description = "The ARN of the launch configuration"
value = module.auto-scaling.launch_configuration_arn
}
output "autoscaling_group_id" {
description = "The autoscaling group id"
value = module.auto-scaling.autoscaling_group_id
}
output "autoscaling_group_name" {
description = "The autoscaling group name"
value = module.auto-scaling.autoscaling_group_name
}
output "autoscaling_group_arn" {
description = "The ARN for this AutoScaling Group"
value = module.auto-scaling.autoscaling_group_arn
}
output "autoscaling_group_min_size" {
description = "The minimum size of the autoscale group"
value = module.auto-scaling.autoscaling_group_min_size
}
output "autoscaling_group_max_size" {
description = "The maximum size of the autoscale group"
value = module.auto-scaling.autoscaling_group_max_size
}
output "autoscaling_group_desired_capacity" {
description = "The number of Amazon EC2 instances that should be running in the group"
value = module.auto-scaling.autoscaling_group_desired_capacity
}
output "autoscaling_group_default_cooldown" {
description = "Time between a scaling activity and the succeeding scaling activity"
value = module.auto-scaling.autoscaling_group_default_cooldown
}
output "autoscaling_group_health_check_grace_period" {
description = "Time after instance comes into service before checking health"
value = join("", module.auto-scaling.autoscaling_group_health_check_grace_period, )
}
output "autoscaling_group_health_check_type" {
description = "`EC2` or `ELB`. Controls how health checking is done"
value = module.auto-scaling.autoscaling_group_health_check_type
}
output "spot_autoscaling_group_id" {
description = "The spot autoscaling group id"
value = module.auto-scaling.spot_autoscaling_group_id
}
output "spot_autoscaling_group_name" {
description = "The spot autoscaling group name"
value = module.auto-scaling.spot_autoscaling_group_name
}
output "spot_autoscaling_group_arn" {
description = "The ARN for this AutoScaling Group"
value = module.auto-scaling.spot_autoscaling_group_arn
}
output "auto_scaling_tags" {
description = "The tags of the autoscaling group"
value = module.auto-scaling.tags
}
## ECS Cluster
output "ec2_cluster_id" {
description = "The Amazon Resource Name (ARN) that identifies the cluster"
value = module.ecs.ec2_id
}
output "ec2_cluster_name" {
description = "The name of the ECS cluster"
value = module.ecs.ec2_name
}
output "ec2_cluster_arn" {
description = "The Amazon Resource Name (ARN) that identifies the cluster"
value = module.ecs.ec2_arn
}
output "fargate_cluster_id" {
description = "The Amazon Resource Name (ARN) that identifies the cluster"
value = module.ecs.fargate_id
}
output "fargate_cluster_name" {
description = "The name of the ECS cluster"
value = module.ecs.fargate_name
}
output "fargate_cluster_arn" {
description = "The Amazon Resource Name (ARN) that identifies the cluster"
value = module.ecs.fargate_arn
}
output "ecs_tags" {
description = "The tags of the autoscaling group"
value = module.ecs.tags
}
## Service
output "ec2_service_id" {
description = "The Amazon Resource Name (ARN) that identifies the service"
value = module.service.ec2_id
}
output "ec2_service_name" {
description = "The name of the service"
value = module.service.ec2_name
}
output "ec2_service_cluster" {
description = "The Amazon Resource Name (ARN) of cluster which the service runs on"
value = module.service.ec2_cluster
}
output "ec2_service_iam_role" {
description = "The ARN of IAM role used for LB"
value = module.service.ec2_iam_role
}
output "ec2_service_desired_count" {
description = "The number of instances of the task definition"
value = module.service.ec2_desired_count
}
output "fargate_service_id" {
description = "The Amazon Resource Name (ARN) that identifies the service"
value = module.service.fargate_id
}
output "fargate_service_name" {
description = "The name of the service"
value = module.service.fargate_name
}
output "fargate_service_cluster" {
description = "The Amazon Resource Name (ARN) of cluster which the service runs on"
value = module.service.fargate_cluster
}
output "fargate_service_desired_count" {
description = "The number of instances of the task definition"
value = module.service.fargate_desired_count
}
output "service_tags" {
description = "The tags of the service"
value = module.service.tags
}
## Task Definition
output "ec2_td_arn" {
description = "Full ARN of the Task Definition (including both family and revision)."
value = module.task-definition.ec2_arn
}
output "ec2_td_family" {
description = "The family of the Task Definition."
value = module.task-definition.ec2_family
}
output "ec2_td_revision" {
description = "The revision of the task in a particular family."
value = module.task-definition.ec2_revision
}
output "fargate_td_arn" {
description = "Full ARN of the Task Definition (including both family and revision)."
value = module.task-definition.fargate_arn
}
output "fargate_td_family" {
description = "The family of the Task Definition."
value = module.task-definition.fargate_family
}
output "fargate_td_revision" {
description = "The revision of the task in a particular family."
value = module.task-definition.fargate_revision
}
output "td_tags" {
description = "The tags of task definition"
value = module.task-definition.tags
}