-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
226 lines (182 loc) · 6.47 KB
/
variables.tf
File metadata and controls
226 lines (182 loc) · 6.47 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
225
# App Items
variable "app_acronym" {
description = "Name for use in labeling/tagging content"
type = string
default = "aots" # Must be lower case.
}
variable "app_name" {
description = "Name for use in labeling/tagging content"
type = string
default = "aots-terraform"
}
variable "app_environment" {
description = "Used to name and tag appropriately to discern between stacks."
type = string
default = "production"
}
#############################################################################
#############################################################################
#############################################################################
# DNS / Route53
variable "app_zone_id" {
description = "Route 53 Zone ID For application."
type = string
default = "Z0018065261EM48K97SM8"
}
variable "app_base_domain_name" {
description = "Domain Name for application"
type = string
default = "agentsofthesystem.com"
}
#############################################################################
#############################################################################
#############################################################################
# IAM
# Name of Service Account
variable "iam_service_account_user_name" {
description = "The name of the Service Account User"
type = string
default = "AgentsOfTheSystem-ServiceAcct"
}
# Name of the Terraform account
variable "iam_terraform_user_name" {
description = "The name of the Terraform User"
type = string
default = "AgentsOfTheSystem-Terraform"
}
#############################################################################
#############################################################################
#############################################################################
# Networking
# A list of allowed availability zones.
variable "availability_zones" {
description = "A list of allowed availability zones."
type = list(any)
default = ["us-east-1a", "us-east-1b"]
}
# The CIDR block for the VPC to create.
variable "vpc_cidr" {
description = "The CIDR block for the VPC."
type = string
default = "10.0.0.0/16"
}
# A boolean flag to enable/disable DNS support in the VPC. Defaults true.
variable "vpc_dns_support" {
description = "Should DNS support be enabled for the VPC?"
type = bool
default = true
}
# A boolean flag to enable/disable DNS hostnames in the VPC. Defaults true.
variable "vpc_dns_hostnames" {
description = "Should DNS hostnames support be enabled for the VPC?"
type = bool
default = true
}
# The CIDR block for the public subnet. This block should be a range within the above VPC CIDR.
variable "public_subnet1_cidr" {
description = "The CIDR block for the first public subnet."
type = string
default = "10.0.1.0/24"
}
variable "public_subnet2_cidr" {
description = "The CIDR block for the second public subnet."
type = string
default = "10.0.2.0/24"
}
# A boolean flag to map the public IP on launch for public subnets. Defaults true.
variable "map_public_ip" {
description = "Specify true to indicate that instances launched into the subnet should be assigned a public IP address."
type = bool
default = true
}
#############################################################################
#############################################################################
#############################################################################
# RDS Stuff
variable "rds_username" {
description = "Specify database username."
type = string
default = "admin"
}
variable "rds_db_name" {
description = "Specify database name."
type = string
default = "aotsprod"
}
variable "rds_enable_manage_password" {
description = "Specify true to enable manage_master_user_password via Secret Manager."
type = bool
default = false
}
# This enables auto-scalling on the server for storage.
variable "rds_max_allocated_storage" {
description = "Specify the maximum storage size for the RDS instance."
type = number
default = 100
}
#############################################################################
#############################################################################
#############################################################################
## Load Balancer
variable "acm_certificate_arn" {
description = "This is the ARN of the AOTS SSL Certificate in ACM."
type = string
default = "arn:aws:acm:us-east-1:667229689063:certificate/d353a580-c7b1-46ae-8816-5b55a653b765"
}
#############################################################################
#############################################################################
#############################################################################
## ECS
variable "aots_image" {
description = ""
type = string
default = "667229689063.dkr.ecr.us-east-1.amazonaws.com/architect"
}
variable "aots_image_tag" {
description = ""
type = string
default = "develop"
}
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size
variable "aots_web_service_cpu" {
description = ""
type = number
default = 256
}
variable "aots_web_service_memory" {
description = ""
type = number
default = 512
}
variable "aots_worker_service_cpu" {
description = ""
type = number
default = 512
}
variable "aots_worker_service_memory" {
description = ""
type = number
default = 1024
}
variable "aots_cloudwatch_log_group_name_primary" {
description = ""
type = string
default = "awslogs-aots-primary"
}
variable "aots_cloudwatch_log_group_name_worker" {
description = ""
type = string
default = "awslogs-aots-worker"
}
#############################################################################
#############################################################################
#############################################################################
## ECS
variable "longest_task_seconds" {
description = ""
type = number
default = 3601 // 60 minutes + 1 second
}
#############################################################################
#############################################################################
#############################################################################