Repository navigation
Expand file tree
/
Copy pathvariable.tf
More file actions
224 lines (183 loc) · 4.75 KB
/
Copy pathvariable.tf
File metadata and controls
224 lines (183 loc) · 4.75 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
variable prefix{
description = "prefix to aws resources"
type = string
default = ""
}
variable permissions_boundary_arn {
description = "Permission boundary arn defined under IAM policy. It is based on venu and no default is provided"
type = string
}
variable region{
description = "aws region"
type = string
default = "us-west-2"
}
variable "profile" {
type = string
default = null
}
variable "cma_version" {
type = string
default = "v2.0.4"
}
variable "metadata_aggregator_version" {
type = string
default = "8.0.0"
}
variable "cmr_url" {
type = string
default = "https://cmr.uat.earthdata.nasa.gov/"
}
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 "cmr_environment" {
type = string
default = "UAT"
}
variable "dmrpp_url" {
description = "The AWS url for the Docker image repository"
type = string
}
variable "stage" {}
variable "app_version" {}
variable "buckets_name" {}
variable "aws_security_group_ids" {}
variable "app_name" {
default = "hitide-backfill"
}
variable "default_tags" {
type = map(string)
default = {}
}
variable "throttle_limit" {
type = number
default = 500
}
variable "message_visibility_timeout" {
type = number
default = 1200
}
variable "step_retry"{
type = number
default = 2
}
variable "db_instance_class"{
type = string
default = "db.t3.micro"
}
variable "db_storage_size"{
type = number
default = 20
}
variable dmrpp_ecs_cpu{
type = number
default = 512
}
variable dmrpp_memory_reservation{
type = number
default = 512
}
variable dmrpp_desired_count{
type = number
default = 1
}
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."
}
######################################################################
# ECS related variables
######################################################################
variable "key_name" {
type = string
description = "Name of the key being used to create EC2 instances in the cluster"
}
variable "deploy_to_ngap" {
type = bool
default = true
}
variable "ecs_cluster_desired_size" {
description = "The desired maximum number of instances for your ECS autoscaling group"
type = number
default = 1
}
variable "ecs_cluster_min_size" {
description = "The minimum number of instances for your ECS cluster"
type = number
default = 1
}
variable "ecs_cluster_max_size" {
description = "The maximum number of instances for your ECS cluster"
type = number
default = 2
}
variable "ecs_efs_config" {
description = "Config for using EFS with ECS instances"
type = object({ mount_target_id = string, mount_point = string })
default = null
}
variable "ecs_cluster_instance_docker_volume_size" {
type = number
description = "Size (in GB) of the volume that Docker uses for image and metadata storage"
default = 50
}
variable "ecs_cluster_instance_type" {
type = string
description = "EC2 instance type for cluster instances"
default = "t3.medium"
}
variable "ecs_docker_storage_driver" {
description = "Storage driver for ECS tasks"
type = string
default = "devicemapper"
}
variable "ecs_docker_hub_config" {
description = "Credentials for integrating ECS with containers hosted on Docker Hu"
type = object({ username = string, password = string, email = string })
default = null
}
variable "ecs_container_stop_timeout" {
description = "Time duration to wait from when a task is stopped before its containers are forcefully killed if they do not exit normally on their own"
type = string
default = "2m"
}
variable "ecs_cluster_scale_in_adjustment_percent" {
type = number
default = -5
}
variable "ecs_cluster_scale_in_threshold_percent" {
type = number
default = 25
}
variable "ecs_cluster_scale_out_adjustment_percent" {
type = number
default = 10
}
variable "ecs_cluster_scale_out_threshold_percent" {
type = number
default = 75
}
variable "ecs_custom_sg_ids" {
description = "User defined security groups to add to the Core ECS cluster"
type = list(string)
default = []
}
variable "buckets" {
type = map(object({ name = string, type = string }))
default = {}
}
variable "system_bucket" {
description = "system bucket to store task_reaper.sh which will be executed during docker image deployment to ECS"
type = string
}
variable "ecs_include_docker_cleanup_cronjob" {
type = bool
default = true
}
variable "cumulus_node_version" {
type = string
}