-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
196 lines (165 loc) · 4.72 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
# ---------------------------------------------------------------------------------------------------------------------
# Required variables
# ---------------------------------------------------------------------------------------------------------------------
variable "subnet_ids" {
description = "Subnet ids for DB subnet group"
type = list(string)
}
# ---------------------------------------------------------------------------------------------------------------------
# Optional variables
# ---------------------------------------------------------------------------------------------------------------------
variable "db_subnet_group_name" {
description = "Optional name of DB Subnet group."
type = string
default = null
}
variable "allocated_storage" {
description = "GB of storage to allocate to each RDS instance"
type = number
default = 10
}
variable "apply_immediately" {
description = "Whether to wait for maintenance window or apply changes immediately"
type = bool
default = true
}
variable "backup_retention_period" {
description = "Number of days to keep backup snapshots"
type = number
default = 7
}
variable "backup_window" {
description = "Time of day to perform backups"
type = string
default = "01:00-02:00"
}
variable "copy_tags_to_snapshot" {
description = "Whether or not to copy tags to snapshots"
type = bool
default = true
}
variable "deletion_protection" {
description = "Whether or not to prevent deletion"
type = bool
default = false
}
variable "engine" {
description = "Database engine"
type = string
default = "mysql"
}
variable "engine_version" {
description = "Database engine version"
type = string
default = "8.0"
}
variable "iam_database_authentication_enabled" {
description = "Whether to use IAM authentication"
type = bool
default = null
}
variable "identifier" {
description = "RDS instance identifier"
type = string
default = null
}
variable "instance_class" {
description = "Instance class"
type = string
default = "db.t2.small"
}
variable "max_allocated_storage" {
description = "The maximum amount of storage to allow with storage autoscaling"
type = number
default = null
}
variable "multi_az" {
description = "Whether multiple AZs should be used for redundency"
type = bool
default = false
}
variable "skip_final_snapshot" {
description = "Whether a final backup snapshot should be skipped on deletion"
type = bool
default = true
}
variable "storage_encrypted" {
description = "Whether storage is encrypted, not applicable to t2.micro instance classes"
type = bool
default = true
}
variable "storage_type" {
description = "Storage type"
type = string
default = "gp2"
}
variable "maintenance_window" {
description = "Maintenance window for auto minor update and snapshots"
type = string
default = "Sat:03:00-Sat:04:00"
}
variable "monitoring_interval" {
description = "Enhanced monitoring interval"
type = number
default = 60
}
variable "parameter_group_name" {
description = "Parameter group name"
type = string
default = "default.mysql8.0"
}
variable "password" {
description = "Master password"
type = string
default = null
}
variable "performance_insights_enabled" {
description = "Whether Performance Insights are enabled"
type = bool
default = false
}
variable "performance_insights_kms_key_id" {
description = "KMS key ARN to encrypt Performance Insights data"
type = string
default = null
}
variable "performance_insights_retention_period" {
description = "Number of days to retain performance insights"
type = number
default = null
}
variable "publicly_accessible" {
description = "Whether instance is publically accessible"
type = bool
default = false
}
variable "username" {
description = "Master username"
type = string
default = "admin"
}
variable "vpc_security_group_ids" {
description = "VPC security group ids"
type = list(string)
default = null
}
variable "role_name" {
type = string
description = "Role name for enhanced monitoring"
default = null
}
variable "db_name" {
type = string
description = "Initial database name"
default = null
}
variable "availability_zone" {
type = string
description = "Preferred availability zone"
default = null
}
variable "manage_master_user_password" {
type = string
description = "Whether secrets manager should be used to manage the master password"
default = null
}