-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
319 lines (269 loc) · 10.1 KB
/
outputs.tf
File metadata and controls
319 lines (269 loc) · 10.1 KB
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
output "domain_name" {
value = coalesce(var.host_override, var.alb_certificate_domain)
description = "The domain name to be used in DNS configuration"
}
output "db_instance_id" {
value = try(one(module.database[*].db_instance_id), "")
description = "The ID of the RDS database instance"
}
output "deployment_name" {
value = var.deployment_name
description = "The name of the deployment"
}
output "lb_name" {
value = "${var.deployment_name}-app"
description = "The name of the external load balancer"
}
output "target_group_arn" {
value = module.load_balancer.target_group_arn
description = "The ARN to the target group where the pods need to be registered as targets."
}
output "security_group_id" {
value = module.security.lb_security_group_id
description = "The security group ID managing ingress from the load balancer"
}
output "postgres_username" {
value = try(one(module.database[*].postgres_username), var.rds_username)
description = "The postgres username to be used by the application"
}
output "postgres_password" {
value = try(one(module.database[*].postgres_password), "")
description = "The generated postgres password to be used by the application"
}
output "postgres_database_name" {
value = try(one(module.database[*].postgres_database_name), var.database_name)
description = "The name of the pre-provisioned database."
}
output "postgres_host" {
value = try(one(module.database[*].postgres_host), "")
description = "The DNS name for the postgres database"
}
output "postgres_port" {
value = try(one(module.database[*].postgres_port), 5432)
description = "The port configured for the RDS database"
}
output "load_balancer_ips" {
value = module.load_balancer.load_balancer_ips
description = "The load balancer IP when it was provisioned."
}
output "cloud_provider" {
value = "aws"
description = "A string describing the type of cloud provider to be passed onto the helm charts"
}
output "cluster_name" {
value = module.eks.cluster_name
description = "The name of the EKS cluster"
}
output "k8s_load_balancer_controller_role_arn" {
value = module.eks.k8s_load_balancer_controller_role_arn
description = "The ARN of the role provisioned so the k8s cluster can edit the target group through the AWS load balancer controller."
}
output "cluster_scaler_role_arn" {
value = module.eks.cluster_scaler_role_arn
description = "The ARN of the role that is able to scale the EKS cluster nodes."
}
output "cluster_endpoint" {
value = module.eks.cluster_endpoint
description = "The URL to the EKS cluster endpoint"
}
output "vpc_cidr" {
value = module.networking.vpc_cidr
description = "The CIDR of the entire VPC"
}
output "vpc_id" {
value = module.networking.vpc_id
description = "The ID of the VPC"
}
output "vpc_private_subnets" {
value = module.networking.vpc_private_subnets
description = "List of private subnet IDs"
}
output "vpc_private_subnet_cidrs" {
value = var.vpc_private_subnets
description = "List of private subnet CIDRs"
}
output "clickhouse_password" {
value = resource.random_password.clickhouse_password.result
description = "The generated clickhouse password to be used in the application deployment"
}
output "redis_password" {
value = resource.random_password.redis_password.result
description = "The generated redis password to be used in the application deployment"
}
output "clickhouse_data_volume_id" {
value = resource.aws_ebs_volume.clickhouse_data.id
description = "The EBS volume ID where clickhouse data will be stored."
}
output "clickhouse_logs_volume_id" {
value = resource.aws_ebs_volume.clickhouse_logs.id
description = "The EBS volume ID where clickhouse logs will be stored."
}
output "clickhouse_data_size" {
value = var.clickhouse_data_size
description = "The size in GB of the clickhouse EBS data volume"
}
output "clickhouse_logs_size" {
value = var.clickhouse_logs_size
description = "The size in GB of the clickhouse EBS logs volume"
}
output "clickhouse_s3_bucket" {
value = module.clickhouse_backup.clickhouse_s3_bucket
description = "The location of the S3 bucket where clickhouse backups are stored"
}
output "clickhouse_s3_region" {
value = module.clickhouse_backup.clickhouse_s3_region
description = "The region where the S3 bucket is created"
}
output "clickhouse_backup_role_name" {
value = module.eks.clickhouse_backup_role_name
description = "The name of the role for clickhouse backups"
}
output "private_access_vpces_name" {
value = coalesce(one(module.private_access[*].private_vpces_name), "not active")
description = "Name of the VPCE service that allows private access to the cluster endpoint"
}
output "redis_data_size" {
value = var.redis_data_size
description = "The size in GB of the Redis data volume."
}
output "redis_data_volume_id" {
value = resource.aws_ebs_volume.redis_data.id
description = "The EBS volume ID of the Redis data volume."
}
output "vpces_azs" {
value = coalesce(one(module.private_access[*].private_access_az), "not active")
description = "Set of availability zones where the VPCES is available."
}
output "github_reverse_proxy_url" {
value = coalesce(one(module.github_reverse_proxy[*].api_gateway_url), "not active")
description = "The URL of the API Gateway that acts as a reverse proxy to the GitHub API"
}
# dfshell
output "dfshell_role_arn" {
value = module.eks.dfshell_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "dfshell_service_account_name" {
value = module.eks.dfshell_service_account_name
description = "The name of the service account for dfshell"
}
# worker_portal
output "worker_portal_role_arn" {
value = module.eks.worker_portal_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_portal_service_account_name" {
value = module.eks.worker_portal_service_account_name
description = "The name of the service account for worker_portal"
}
# operator
output "operator_role_arn" {
value = module.eks.operator_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "operator_service_account_name" {
value = module.eks.operator_service_account_name
description = "The name of the service account for operator"
}
# server
output "server_role_arn" {
value = module.eks.server_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "server_service_account_name" {
value = module.eks.server_service_account_name
description = "The name of the service account for server"
}
# scheduler
output "scheduler_role_arn" {
value = module.eks.scheduler_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "scheduler_service_account_name" {
value = module.eks.scheduler_service_account_name
description = "The name of the service account for scheduler"
}
# worker, worker1, worker2 etc.
output "worker_role_arn" {
value = module.eks.worker_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_service_account_name" {
value = module.eks.worker_service_account_name
description = "The name of the service account for worker"
}
# worker_catalog
output "worker_catalog_role_arn" {
value = module.eks.worker_catalog_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_catalog_service_account_name" {
value = module.eks.worker_catalog_service_account_name
description = "The name of the service account for worker_catalog"
}
# worker_interactive
output "worker_interactive_role_arn" {
value = module.eks.worker_interactive_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_interactive_service_account_name" {
value = module.eks.worker_interactive_service_account_name
description = "The name of the service account for worker_interactive"
}
# worker_singletons
output "worker_singletons_role_arn" {
value = module.eks.worker_singletons_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_singletons_service_account_name" {
value = module.eks.worker_singletons_service_account_name
description = "The name of the service account for worker_singletons"
}
# worker_lineage
output "worker_lineage_role_arn" {
value = module.eks.worker_lineage_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_lineage_service_account_name" {
value = module.eks.worker_lineage_service_account_name
description = "The name of the service account for worker_lineage"
}
# worker_monitor
output "worker_monitor_role_arn" {
value = module.eks.worker_monitor_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "worker_monitor_service_account_name" {
value = module.eks.worker_monitor_service_account_name
description = "The name of the service account for worker_monitor"
}
# storage_worker
output "storage_worker_role_arn" {
value = module.eks.storage_worker_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "storage_worker_service_account_name" {
value = module.eks.storage_worker_service_account_name
description = "The name of the service account for storage_worker"
}
output "dma_role_arn" {
value = module.eks.dma_role_arn
description = "The ARN of the AWS Bedrock role"
}
output "dma_service_account_name" {
value = module.eks.dma_service_account_name
description = "The name of the service account for dma"
}
# temporal
output "temporal_s3_bucket" {
value = coalesce(one(module.temporal_backup[*].temporal_s3_bucket), "not active")
description = "The S3 bucket for Temporal PostgreSQL backups"
}
output "temporal_s3_region" {
value = coalesce(one(module.temporal_backup[*].temporal_s3_region), "not active")
description = "The region of the Temporal PostgreSQL backup S3 bucket"
}
output "temporal_backup_role_arn" {
value = module.eks.temporal_backup_role_arn
description = "The ARN of the IAM role for Temporal PostgreSQL backups (annotate the postgres-pod service account with this)"
}