-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
executable file
·253 lines (210 loc) · 7.52 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
##################################################
# Amazon Web Services (AWS)
##################################################
variable "aws_region" {
type = string
default = "" // <= TODO - Enter variable value.
description = "The name of the selected region."
}
variable "aws_access_key" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Specifies an AWS access key associated with an IAM account."
}
variable "aws_secret_key" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Specifies the secret key associated with the access key."
}
##################################################
# Elastic Compute Cloud (EC2)
##################################################
variable "ec2_name" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Instance name."
}
variable "ec2_environment" {
type = string
default = "Development environment" // <= TODO - Enter variable value.
description = "Instance environment."
}
variable "ec2_aws_key_pair_key_name" {
type = string
default = "" // <= TODO - Enter variable value.
description = "The name for the key pair."
}
variable "ec2_ami" {
type = string
default = "" // <= TODO - Enter variable value.
description = "ID of Amazon Machine Image (AMI) to use for the instance."
}
variable "ec2_instance_type" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Type of the Instance."
}
variable "ec2_volume_size" {
type = number
default = "" // <= TODO - Enter variable value.
description = "The volume size in gigabytes."
}
variable "ec2_volume_type" {
type = string
default = "" // <= TODO - Enter variable value.
description = "One of 'standard' (magnetic), 'gp2' (general purpose SSD), 'gp3' (new generation of SSD), or 'io1' (provisioned IOPS SSD)."
}
variable "ec2_init_sh_local" {
type = string
default = "./bash/init.sh"
description = "Path to local init bash script for EC2."
}
variable "ec2_init_sh_remote" {
type = string
default = "/tmp/init.sh"
description = "Path to remote init bash script for EC2."
}
variable "ec2_ssh_key_file_name" {
type = string
default = "admin.pem"
description = "Public EC2 SSH key file name."
}
variable "ec2_connection_type" {
type = string
default = "ssh"
description = "The connection type. Valid values are 'ssh' and 'winrm'."
}
variable "ec2_connection_user" {
type = string
default = "admin"
description = "The user to use for the connection."
}
variable "ec2_connection_timeout" {
type = string
default = "30s"
description = "The timeout to wait for the connection to become available. Should be provided as a string."
}
variable "ec2_tls_private_key_algorithm" {
type = string
default = "ECDSA"
description = "The name of the algorithm to use for the key. Currently-supported values are 'RSA' and 'ECDSA'."
}
variable "ec2_tls_private_key_ecdsa_curve" {
type = string
default = "P521"
description = "When algorithm is ECDSA, the name of the elliptic curve to use. Currently-supported values are: P224, P256, P384, P521. (default: P224)"
}
##################################################
# Relational Database Service (RDS)
##################################################
variable "rds_identifier" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Instance name."
}
variable "rds_environment" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Instance environment."
}
variable "rds_engine" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Provides the name of the database engine to be used for this DB instance."
}
variable "rds_engine_version" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Database engine version."
}
variable "rds_username" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Username for the master DB user."
}
variable "rds_password" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file."
}
variable "rds_db_name" {
type = string
default = "" // <= TODO - Enter variable value.
description = "The DB name to create. If omitted, no database is created initially."
}
variable "rds_instance_class" {
type = string
default = "" // <= TODO - Enter variable value.
description = "General purpose family and has 2 vCPUs, 8 GiB of memory and up to 5 Gibps of bandwidth"
}
variable "rds_backup_retention_period" {
type = number
default = "" // <= TODO - Enter variable value.
description = "The days to retain backups for."
}
variable "rds_backup_window" {
type = string
default = "" // <= TODO - Enter variable value.
description = "The daily time range (in UTC) during which automated backups are created if they are enabled. Example: '09:46-10:16'. Must not overlap with maintenance_window."
}
variable "rds_maintenance_window" {
type = string
default = "" // <= TODO - Enter variable value.
description = "The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'. Eg: 'Mon:01:00-Mon:03:00'."
}
variable "rds_storage_type" {
type = string
default = "" // <= TODO - Enter variable value.
description = "One of 'standard' (magnetic), 'gp2' (general purpose SSD), 'gp3' (new generation of general purpose SSD), or 'io1' (provisioned IOPS SSD). The default is 'io1' if iops is specified, 'gp2' if not. If you specify 'io1' or 'gp3' , you must also include a value for the 'iops' parameter."
}
variable "rds_allocated_storage" {
type = number
default = "" // <= TODO - Enter variable value.
description = "The allocated storage in gigabytes."
}
##################################################
# Route 53
##################################################
variable "route_53_domain" {
type = string
default = "" // <= TODO - Enter variable value.
description = "This is the name of the hosted zone."
}
variable "route_53_environment" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Instance environment."
}
variable "route_53_description" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Instance description."
}
##################################################
# Simple Storage Service (S3)
##################################################
variable "s3_bucket" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Name of the bucket."
}
variable "s3_tag_name" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Bucket description."
}
variable "s3_tag_environment" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Bucket environment."
}
variable "s3_object_key" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Name of the object once it is in the bucket."
}
variable "s3_object_file_path" {
type = string
default = "" // <= TODO - Enter variable value.
description = "Bucket environment."
}