generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_variable.tf
217 lines (190 loc) · 5.89 KB
/
_variable.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
variable "internal" {
type = bool
description = "Flag to determine if the several AWS resources are public (intended for external access, public internet) or private (only intended to be accessed within your AWS VPC or avaiable with other means, a transit gateway for example)."
default = true
}
variable "appmesh_name" {
type = string
description = "Name of the AWS App Mesh"
default = ""
}
variable "cloudmap_namespace_name" {
type = string
description = "Name of the AWS Cloud Map namespace"
default = ""
}
variable "cw_retention_in_days" {
type = number
description = "Retention period in days for CloudWatch logs"
default = 30
}
variable "ecs_alb_name" {
description = "Name of the Application Load Balancer (ALB)"
type = string
default = ""
}
variable "ecs_alb_tg_name" {
description = "Name of the ALB Target Group"
type = string
default = ""
}
variable "ecs_cluster_name" {
type = string
description = "Name of the ECS Cluster"
default = ""
}
variable "ecs_cloudwatch_group" {
type = string
description = "Name of the AWS CloudWatch Log Group for ECS"
default = ""
}
variable "ecs_task_execution_role_name" {
type = string
description = "Name of the ECS Task Execution Role"
default = ""
}
variable "ecs_task_role_name" {
type = string
description = "Name of the ECS Task Role"
default = ""
}
variable "enable_autoscaling" {
type = bool
description = "Flag to enable autoscaling for the ECS services"
default = true
}
variable "private_subnet_ids" {
type = list(string)
description = "List of private subnet IDs"
}
variable "public_subnet_ids" {
type = list(string)
description = "List of public subnet IDs"
}
variable "region" {
type = string
description = "The AWS region where resources are created"
}
variable "s3_viewer_bucket_name" {
type = string
description = "Name of the S3 bucket for the viewer"
default = ""
}
variable "s3_viewer_bucket_role_name" {
type = string
description = "Name of the IAM role for the ecr-viewer bucket"
default = ""
}
variable "phdi_version" {
type = string
description = "Version of the PHDI application"
default = "v1.6.9"
}
variable "service_data" {
type = map(object({
short_name = string
fargate_cpu = number
fargate_memory = number
min_capacity = number
max_capacity = number
app_repo = string
app_image = string
app_version = string
container_port = number
host_port = number
public = bool
registry_url = string
env_vars = list(object({
name = string
value = string
}))
}))
description = "Data for the DIBBS services"
default = {}
}
variable "postgres_database_data" {
type = object({
non_integrated_viewer = string
metadata_database_type = string
metadata_database_schema = string
secrets_manager_postgres_database_url_name = string
})
default = {
non_integrated_viewer = "false"
metadata_database_type = ""
metadata_database_schema = ""
secrets_manager_postgres_database_url_name = ""
}
}
variable "sqlserver_database_data" {
type = object({
non_integrated_viewer = string
metadata_database_type = string
metadata_database_schema = string
secrets_manager_sqlserver_user_name = string
secrets_manager_sqlserver_password_name = string
secrets_manager_sqlserver_host_name = string
})
default = {
non_integrated_viewer = "false"
metadata_database_type = ""
metadata_database_schema = ""
secrets_manager_sqlserver_user_name = ""
secrets_manager_sqlserver_password_name = ""
secrets_manager_sqlserver_host_name = ""
}
}
variable "certificate_arn" {
type = string
description = "ARN of the SSL certificate that enables ssl termination on the ALB"
default = ""
}
variable "vpc_id" {
type = string
description = "ID of the VPC"
}
variable "owner" {
type = string
description = "Owner of the resources"
default = "CDC"
}
variable "project" {
type = string
description = "The project name"
default = "dibbs"
}
variable "disable_ecr" {
type = bool
description = "Flag to disable the aws ecr service for docker image storage, defaults to false"
default = false
}
variable "tags" {
type = map(string)
description = "Tags to apply to resources"
default = {}
}
variable "ecr_viewer_app_env" {
type = string
description = "The current environment that is running. This may modify behavior of auth between dev and prod."
default = "prod"
}
variable "ecr_viewer_auth_pub_key" {
type = string
description = "The public key used to validate the incoming authenication for the eCR Viewer."
default = <<EOT
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAqjrH9PprQCB5dX15zYfd
S6K2ezNi/ZOu8vKEhQuLqwHACy1iUt1Yyp2PZLIV7FVDgBHMMVWPVx3GJ2wEyaJw
MHkv6XNpUpWLhbs0V1T7o/OZfEIqcNua07OEoBxX9vhKIHtaksWdoMyKRXQJz0js
oWpawfOWxETnLqGvybT4yvY2RJhquTXLcLu90L4LdvIkADIZshaOtAU/OwI5ATcb
fE3ip15E6jIoUm7FAtfRiuncpI5l/LJPP6fvwf8QCbbUJBZklLqcUuf4qe/L/nIq
pIONb8KZFWPhnGeRZ9bwIcqYWt3LAAshQLSGEYl2PGXaqbkUD2XLETSKDjisxd0g
9j8bIMPgBKi+dBYcmBZnR7DxJe+vEDDw8prHG/+HRy5fim/BcibTKnIl8PR5yqHa
mWQo7N+xXhILdD9e33KLRgbg97+erHqvHlNMdwDhAfrBT+W6GCdPwp3cePPsbhsc
oGSHOUDhzyAujr0J8h5WmZDGUNWjGzWqubNZD8dBXB8x+9dDoWhfM82nw0pvAeKf
wJodvn3Qo8/S5hxJ6HyGkUTANKN8IxWh/6R5biET5BuztZP6jfPEaOAnt6sq+C38
hR9rUr59dP2BTlcJ19ZXobLwuJEa81S5BrcbDwYNOAzC8jl2EV1i4bQIwJJaY27X
Iynom6unaheZpS4DFIh2w9UCAwEAAQ==
-----END PUBLIC KEY-----
EOT
}