-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathvariables.tf
477 lines (394 loc) · 10.8 KB
/
variables.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
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
# Required
variable "cmr_client_id" {
type = string
}
variable "cmr_environment" {
type = string
}
variable "cmr_password" {
type = string
}
variable "cmr_provider" {
type = string
}
variable "cmr_username" {
type = string
}
variable "bucket_map_key" {
type = string
default = null
}
variable "cumulus_message_adapter_lambda_layer_version_arn" {
type = string
description = "Layer version ARN of the Lambda layer for the Cumulus Message Adapter"
}
variable "cmr_oauth_provider" {
type = string
default = "launchpad"
}
variable "csdap_client_id" {
type = string
description = "The csdap client id"
}
variable "csdap_client_password" {
type = string
description = "The csdap client password"
}
variable "csdap_host_url" {
type = string
description = "The csdap host url"
}
variable "launchpad_api" {
type = string
default = "launchpadApi"
}
variable "launchpad_certificate" {
type = string
default = "launchpad.pfx"
}
variable "launchpad_passphrase" {
type = string
default = ""
}
variable "lzards_launchpad_certificate" {
type = string
default = "launchpad.pfx"
}
variable "lzards_launchpad_passphrase" {
type = string
default = ""
}
variable "lzards_api" {
description = "LZARDS API endpoint"
type = string
default = "https://lzards.sit.earthdata.nasa.gov/api/backups"
}
variable "lzards_provider" {
description = "LZARDS provider name"
type = string
default = "CUMULUS_INTEGRATION_TESTS"
}
variable "lzards_s3_link_timeout" {
description = "LZARDS S3 access link timeout (seconds)"
type = string
default = ""
}
variable "oauth_provider" {
type = string
default = "earthdata"
}
variable "oauth_user_group" {
type = string
default = "N/A"
}
variable "data_persistence_remote_state_config" {
type = object({ bucket = string, key = string, region = string })
}
variable "s3_replicator_config" {
type = object({ source_bucket = string, source_prefix = string, target_bucket = string, target_prefix = string, target_region = optional(string) })
default = null
description = "Configuration for the s3-replicator module. Items with prefix of source_prefix in the source_bucket will be replicated to the target_bucket with target_prefix."
}
variable "prefix" {
type = string
}
variable "saml_entity_id" {
type = string
default = "N/A"
}
variable "saml_assertion_consumer_service" {
type = string
default = "N/A"
}
variable "saml_idp_login" {
type = string
default = "N/A"
}
variable "saml_launchpad_metadata_url" {
type = string
default = "N/A"
}
variable "system_bucket" {
type = string
}
variable "token_secret" {
type = string
}
variable "urs_client_id" {
type = string
}
variable "urs_client_password" {
type = string
}
# Optional
variable "vpc_id" {
type = string
default = null
}
variable "api_gateway_stage" {
type = string
default = "dev"
description = "The archive API Gateway stage to create"
}
variable "ftp_host_configuration_bucket" {
type = string
default = "cumulus-test-sandbox-internal"
description = "Bucket containing ftp test host configuration"
}
variable "api_reserved_concurrency" {
type = number
default = 5
description = "Archive API Lambda reserved concurrency"
}
variable "buckets" {
type = map(object({ name = string, type = string }))
default = {}
}
variable "cmr_search_client_config" {
description = "Configuration parameters for CMR search client for cumulus tasks"
type = map(string)
default = {}
}
variable "cumulus_distribution_url" {
type = string
default = null
description = "The url of cumulus distribution API Gateway endpoint"
}
variable "default_s3_multipart_chunksize_mb" {
description = "default S3 multipart upload chunk size in MB"
type = number
default = 256
}
variable "tea_distribution_url" {
type = string
default = null
}
variable "ecs_cluster_instance_subnet_ids" {
type = list(string)
default = []
}
variable "ecs_include_docker_cleanup_cronjob" {
type = bool
default = false
}
variable "key_name" {
type = string
default = null
}
variable "region" {
type = string
default = "us-east-1"
}
variable "permissions_boundary_arn" {
type = string
default = null
}
variable "aws_profile" {
type = string
default = null
}
variable "lambda_subnet_ids" {
type = list(string)
default = []
}
variable "log_api_gateway_to_cloudwatch" {
type = bool
default = false
description = "Enable logging of API Gateway activity to CloudWatch."
}
variable "log_destination_arn" {
type = string
default = null
description = "Remote kinesis/destination arn for delivering logs."
}
variable "archive_api_port" {
type = number
default = null
}
variable "archive_api_url" {
type = string
default = null
description = "If not specified, the value of the Backend (Archive) API Gateway endpoint is used"
}
variable "private_archive_api_gateway" {
type = bool
default = true
}
variable "thin_egress_jwt_secret_name" {
type = string
description = "Name of AWS secret where keys for the Thin Egress App JWT encode/decode are stored"
default = "cumulus_sandbox_jwt_tea_secret"
}
variable "metrics_es_host" {
type = string
default = null
}
variable "metrics_es_password" {
type = string
default = null
}
variable "metrics_es_username" {
type = string
default = null
}
variable "additional_log_groups_to_elk" {
type = map(string)
default = {}
}
variable "tags" {
description = "Tags to be applied to Cumulus resources that support tags"
type = map(string)
default = {}
}
variable "pdr_node_name_provider_bucket" {
type = string
description = "The name of the common bucket used as an S3 provider for PDR NODE_NAME tests"
default = "cumulus-sandbox-pdr-node-name-provider"
}
variable "rds_connection_timing_configuration" {
description = "Cumulus rds connection timeout retry timing object -- these values map to knex.js's internal use of https://github.com/vincit/tarn.js/ for connection acquisition"
type = map(number)
default = {
acquireTimeoutMillis: 90000
createRetryIntervalMillis: 30000,
createTimeoutMillis: 20000,
idleTimeoutMillis: 1000,
reapIntervalMillis: 1000,
}
}
variable "rds_admin_access_secret_arn" {
description = "AWS Secrets Manager secret ARN containing a JSON string of DB credentials (containing at least host, password, port as keys)"
type = string
}
variable "async_operation_image_version" {
description = "docker image version to use for Cumulus async operations tasks"
type = string
default = "53"
}
variable "cumulus_process_activity_version" {
description = "docker image version to use for python processing service"
type = string
default = "4"
}
variable "ecs_task_image_version" {
description = "docker image version to use for Cumulus hello world task"
type = string
default = "2.1.0"
}
variable "cumulus_test_ingest_image_version" {
description = "docker image version to use for python test ingest processing service"
type = string
default = "17"
}
variable "ecs_custom_sg_ids" {
description = "User defined security groups to add to the Core ECS cluster"
type = list(string)
default = []
}
## ORCA Variables Definitions
variable "orca_db_user_password" {
description = "Password for RDS orca database user authentication"
type = string
}
variable "orca_default_bucket" {
type = string
description = "Default ORCA S3 Glacier bucket to use."
}
variable "orca_dlq_subscription_email" {
type = string
description = "The email to notify users when messages are received in dead letter SQS queue due to orca restore failure."
default = "[email protected]"
}
variable "lambda_timeouts" {
description = "Configurable map of timeouts for lambdas"
type = map(number)
default = {
cleanExecutions = 400 # archive
DistributionApiEndpoints = 400 # cumulus_distribution
s3-credentials-endpoint = 400 # distribution
HelloWorld = 400 # ingest
s3-replicator = 400 # s3-replicator
TeaCache = 400 # tea-map-cache
}
}
variable "lambda_memory_sizes" {
description = "Configurable map of memory sizes for lambdas"
type = map(number)
default = {
cleanExecutions = 512 # archive
DistributionApiEndpoints = 512 # cumulus_distribution
HelloWorld = 512 # ingest
s3-credentials-endpoint = 512 # distribution
s3-replicator = 512 # s3-replicator
TeaCache = 512 # tea-map-cache
}
}
variable "optional_dynamo_tables" {
type = map(object({ name = string, arn = string }))
default = {}
description = "A map of objects with the `arn` and `name` of every additional DynamoDB table your Cumulus deployment can reference."
}
variable "cmr_custom_host" {
description = "Custom protocol and host to use for CMR requests (e.g. http://cmr-host.com)"
type = string
default = null
}
variable "deploy_cumulus_distribution" {
description = "If true, does not deploy the TEA distribution API"
type = bool
default = true
}
variable "vpc_tag_name" {
description = "Tag name to use for looking up VPC"
type = string
default = "Application VPC"
}
variable "subnets_tag_name" {
description = "Tag name to use for looking up VPC subnets"
type = string
default = "Private application us-east-1a *"
}
variable "cloudwatch_log_retention_periods" {
type = map(number)
description = "retention periods for the respective cloudwatch log group, these values will be used instead of default retention days"
default = {
thin-egress-app-EgressLambda = 7
ApiEndpoints = 7
AsyncOperationEcsLogs = 7
DiscoverPdrs = 7
DistributionApiEndpoints = 7
EcsLogs = 7
granuleFilesCacheUpdater = 7
HyraxMetadataUpdates = 7
ParsePdr = 7
PostToCmr = 7
PrivateApiLambda = 7
publishExecutions = 7
publishGranules = 7
QueuePdrs = 7
QueueWorkflow = 7
replaySqsMessages = 7
SyncGranule = 7
UpdateCmrAccessConstraints = 7
}
}
variable "default_log_retention_days" {
type = number
default = 14
description = "default value that user chooses for their log retention periods"
}
variable "report_sns_topic_subscriber_arns" {
type = list
default = null
}
## Dead Letter Recovery Configuration
variable "dead_letter_recovery_cpu" {
type = number
default = 256
description = "The amount of CPU units to reserve for the dead letter recovery Async Operation Fargate Task"
}
variable "dead_letter_recovery_memory" {
type = number
default = 1024
description = "The amount of memory in MB to reserve for the dead letter recovery Async Operation Fargate Task"
}