-
Notifications
You must be signed in to change notification settings - Fork 12
/
variables.tf
282 lines (227 loc) · 5.39 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
# Required
variable "cmr_client_id" {
type = string
}
variable "deploy_to_ngap" {
description = "true if deploying to an NGAP environment"
type = bool
}
variable "cumulus_message_adapter_version" {
description = "Version of Cumulus Message Adapter to download"
type = string
}
variable "cmr_environment" {
type = string
}
variable "cmr_password" {
type = string
}
variable "cmr_provider" {
type = string
}
variable "cmr_username" {
type = string
}
variable "cmr_oauth_provider" {
type = string
default = "earthdata"
}
variable "csdap_client_id" {
type = string
default = null
description = "The csdap client id"
}
variable "csdap_client_password" {
type = string
default = null
description = "The csdap client password"
}
variable "csdap_host_url" {
type = string
default = null
description = "The csdap host url"
}
variable "ecs_cluster_instance_subnet_ids" {
type = list(string)
default = []
}
variable "lambda_subnet_ids" {
type = list(string)
default = []
}
variable "launchpad_api" {
type = string
default = "launchpadApi"
}
variable "launchpad_certificate" {
type = string
default = "launchpad.pfx"
}
variable "launchpad_passphrase" {
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 })
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 "thin_egress_jwt_secret_name" {
type = string
description = "Name of AWS secret where keys for the Thin Egress App JWT encode/decode are stored"
}
variable "urs_client_id" {
type = string
}
variable "urs_client_password" {
type = string
}
variable "vpc_id" {
type = string
}
# Optional
variable "api_gateway_stage" {
type = string
default = "dev"
description = "The archive API Gateway stage to create"
}
variable "buckets" {
type = map(object({ name = string, type = string }))
default = {}
}
variable "cumulus_distribution_url" {
type = string
default = null
description = "The url of cumulus distribution API Gateway endpoint"
}
variable "tea_distribution_url" {
type = string
default = null
description = "The url of TEA API Gateway endpoint"
}
variable "deploy_distribution_s3_credentials_endpoint" {
description = "Whether or not to include the S3 credentials endpoint in the Thin Egress App"
type = bool
default = true
}
variable "distribution_url" {
type = string
default = null
}
variable "ecs_cluster_instance_image_id" {
type = string
description = "AMI ID of ECS instances"
default = null
}
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 "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. Requires log_api_gateway_to_cloudwatch set to true."
}
variable "api_users" {
type = list(string)
default = []
}
variable "urs_url" {
description = "The URL of the Earthdata login (URS) site"
type = string
default = "https://uat.urs.earthdata.nasa.gov"
}
variable "archive_api_port" {
type = number
default = null
}
variable "private_archive_api_gateway" {
type = bool
default = true
}
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 "deploy_cumulus_distribution" {
description = "If true, does not deploy the TEA distribution API"
type = bool
default = false
}
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 = {}
}
variable "default_log_retention_days" {
type = number
description = "default value that user chooses for their log retention periods"
default = 30
}