forked from nasa/cumulus-orca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
188 lines (138 loc) · 4.83 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
## Variables obtained by Cumulus deployment
## Should exist in https://github.com/nasa/cumulus-template-deploy/blob/master/cumulus-tf/variables.tf
## REQUIRED
variable "buckets" {
type = map(object({ name = string, type = string }))
description = "S3 bucket locations for the various storage types being used."
}
variable "lambda_subnet_ids" {
type = list(string)
description = "List of subnets the lambda functions have access to."
}
variable "permissions_boundary_arn" {
type = string
description = "AWS ARN value for the permission boundary."
}
variable "prefix" {
type = string
description = "Prefix used to prepend to all object names and tags."
}
variable "system_bucket" {
type = string
description = "Cumulus system bucket used to store internal files."
}
variable "vpc_id" {
type = string
description = "Virtual Private Cloud AWS ID"
}
variable "workflow_config" {
# https://github.com/nasa/cumulus/blob/master/tf-modules/workflow/variables.tf#L23
description = "Configuration object with ARNs for workflow integration (Role ARN for executing workflows and Lambda ARNs to trigger on workflow execution)"
type = object({
sf_event_sqs_to_db_records_sqs_queue_arn = string
sf_semaphore_down_lambda_function_arn = string
state_machine_role_arn = string
sqs_message_remover_lambda_function_arn = string
})
}
## OPTIONAL
variable "tags" {
type = map(string)
description = "Tags to be applied to resources that support tags."
default = {}
}
## Variables unique to ORCA
## REQUIRED
variable "database_app_user_pw" {
type = string
description = "ORCA application database user password."
}
variable "orca_default_bucket" {
type = string
description = "Default ORCA S3 Glacier bucket to use if no overrides exist."
}
variable "postgres_user_pw" {
type = string
description = "postgres database user password."
}
## OPTIONAL
variable "database_port" {
type = number
description = "Database port that PostgreSQL traffic will be allowed on."
default = 5432
}
variable "default_multipart_chunksize_mb" {
type = number
description = "The default maximum size of chunks to use when copying. Can be overridden by collection config."
default = 250
}
variable "orca_ingest_lambda_memory_size" {
type = number
description = "Amount of memory in MB the ORCA copy_to_glacier lambda can use at runtime."
default = 2240
}
variable "orca_ingest_lambda_timeout" {
type = number
description = "Timeout in number of seconds for ORCA copy_to_glacier lambda."
default = 600
}
variable "orca_recovery_buckets" {
type = list(string)
description = "List of bucket names that ORCA has permissions to restore data to."
default = []
}
variable "orca_recovery_complete_filter_prefix" {
type = string
description = "Specifies object key name prefix by the Glacier Bucket trigger."
default = ""
}
variable "orca_recovery_expiration_days" {
type = number
description = "Number of days a recovered file will remain available for copy."
default = 5
}
variable "orca_recovery_lambda_memory_size" {
type = number
description = "Amount of memory in MB the ORCA recovery lambda can use at runtime."
default = 128
}
variable "orca_recovery_lambda_timeout" {
type = number
description = "Timeout in number of seconds for ORCA recovery lambdas."
default = 720
}
variable "orca_recovery_retry_limit" {
type = number
description = "Maximum number of retries of a recovery failure before giving up."
default = 3
}
variable "orca_recovery_retry_interval" {
type = number
description = "Number of seconds to wait between recovery failure retries."
default = 1
}
variable "orca_recovery_retry_backoff" {
type = number
description = "The multiplier by which the retry interval increases during each attempt."
default = 2
}
variable "sqs_delay_time_seconds" {
type = number
description = "The time in seconds that the delivery of all messages in the queue will be delayed."
default = 0
}
variable "sqs_maximum_message_size" {
type = number
description = "The limit of how many bytes a message can contain before Amazon SQS rejects it."
default = 262144
}
variable "staged_recovery_queue_message_retention_time_seconds" {
type = number
description = "The number of seconds staged-recovery-queue fifo SQS retains a message in seconds. Maximum value is 14 days."
default = 432000 #5 days
}
variable "status_update_queue_message_retention_time_seconds" {
type = number
description = "The number of seconds status_update_queue SQS retains a message in seconds. Maximum value is 14 days."
default = 777600 #9 days
}