-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
216 lines (181 loc) · 6.06 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
variable "name" {
type = string
default = ""
description = "Deprecated. Name of your service, used to generate db identifier and dbname"
}
variable "database_name" {
type = string
default = ""
description = "Name of your database."
}
variable "identifier_suffix" {
type = string
default = ""
description = "A suffix to tack on to the db identifier. Typically used for replicas."
}
variable "replicate_source_db" {
type = string
default = null
description = "If provided, replicate the database indicated."
}
variable "app" {
type = string
default = ""
description = "Name of your app."
}
variable "env" {
type = string
default = "staging"
description = "Either 'staging' or 'production'."
}
variable "username" {
type = string
default = "opendoor"
description = "Username of database role."
}
variable "password_length" {
type = string
default = "32"
description = "Length of the generated password."
}
variable "storage" {
type = string
default = "20"
description = "Allocated size of the database in gigabytes."
}
variable "max_storage" {
type = number
default = 0
description = "Maximum allocated size of the database in gigabytes, enables autoscaling."
}
variable "security_groups" {
type = list(string)
default = ["sg-70078f39"]
description = "List of VPC security groups this database belongs to."
}
variable "staging_security_groups" {
type = list(string)
default = ["sg-0286bbf77920906ee"]
description = "List of VPC security groups the staging instance(s) of this database will belong to."
}
variable "prod_security_groups" {
type = list(string)
default = ["sg-0508423c1f45a33dd"]
description = "List of VPC security groups the prod instance(s) of this database will belong to."
}
variable "additional_security_groups" {
type = list(string)
default = []
description = "List of additional VPC security groups"
}
variable "instance_class" {
type = string
default = ""
description = "The instance type of the RDS instance."
}
variable "backup_retention_period" {
type = string
default = "7"
description = "Number of days to retain backups for."
}
variable "iops" {
type = number
default = 0
description = "The amount of provisioned IOPS. Setting this requires declaring storage_type of 'io1'."
}
variable "deletion_protection" {
type = bool
default = true
description = "If the DB instance has deletion protection enabled, the database can't be deleted"
}
variable "storage_type" {
type = string
default = "gp2"
description = "Defaults to 'gp2' (general purpose SSD), alternatives: 'standard' (magnetic) or 'io1' (provisioned IOPS SSD)."
}
variable "storage_encrypted" {
type = string
default = ""
description = "Whether the storage should be encrypted at rest."
}
variable "engine_version" {
type = string
# We only specify the major version because we have auto minor version upgrade enabled in RDS.
default = "11"
description = "Version of Postgres to use."
}
variable "parameter_group" {
type = string
default = ""
description = "Name of the parameter group to use. If unset, will default to default.postgres[major], determined automatically from engine_version. Only set this if you want to use a non-default parameter group"
}
variable "allow_major_version_upgrade" {
type = bool
default = true
description = "Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible."
}
variable "auto_minor_version_upgrade" {
type = bool
default = true
description = "Indicates that minor version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible."
}
variable "apply_immediately" {
type = bool
default = false
description = "(Optional) Specifies whether any database modifications are applied immediately, or during the next maintenance window."
}
variable "performance_insights_enabled" {
type = bool
default = true
description = "(Optional) Specifies whether Performance Insights is enabled or not."
}
variable "performance_insights_retention_period" {
type = number
default = 7
description = "(Optional) Amount of time in days to retain Performance Insights data."
}
variable "performance_insights_kms_key_id" {
type = string
default = ""
description = "(Optional) The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true."
}
variable "publicly_accessible" {
type = bool
default = false
description = "Should the database be publicly accessible? (DO NOT USE UNLESS ABSOLUTELY NECESSARY)"
}
variable "maintenance_window" {
type = string
default = "mon:07:00-mon:08:00"
description = "Maintenance window in (UTC) ddd:hh24:mi-ddd:hh24:mi format and must not overlap with the backup window"
}
variable "backup_window" {
type = string
default = "05:30-06:00"
description = "Backup window in (UTC) hh24:mi-hh24:mi format and must not overlap with the maintance window"
}
variable "timeout_create" {
type = string
default = "40m"
description = "When will RDS creation timeout? 40m is the default"
}
variable "timeout_delete" {
type = string
default = "60m"
description = "When will RDS delete timeout? 60m is the default"
}
variable "timeout_update" {
type = string
default = "80m"
description = "When will RDS update timeout? 80 is the default"
}
variable "sox_related" {
type = bool
default = false
description = "Whether the RDS is in SOX scope"
}
variable "custom_tags" {
type = map(string)
default = {}
description = "AWS tags in addition to auto-generated tags"
}