generated from geekcell/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
211 lines (179 loc) · 5.23 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
# Context
variable "tags" {
default = {}
description = "Tags to add to the AWS RDS Cluster Instance."
type = map(any)
}
# AWS RDS Cluster
variable "additional_reader_capacity" {
default = 0
description = "The minimum of additional reader capacity in an AWS RDS Cluster."
type = number
}
variable "auto_minor_version_upgrade" {
default = false
description = "Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window."
type = bool
}
variable "allow_major_version_upgrade" {
default = false
description = "Indicates that major version upgrades are allowed."
type = bool
}
variable "apply_immediately" {
default = true
description = "Specifies whether any database modifications are applied immediately, or during the next maintenance window. "
type = bool
}
variable "backup_retention_period" {
default = 35
description = "The days to retain backups for. Must be between 0 and 35."
type = number
}
variable "cluster_identifier" {
description = "The cluster identifier. If omitted, Terraform will assign a random, unique identifier."
type = string
}
variable "database_event_recipients" {
default = []
description = "Recipients of the database events."
type = list(string)
}
variable "database_name" {
default = null
description = "Name for an automatically created database on cluster creation."
type = string
}
variable "database_subnet_group_name" {
description = "Name of DB subnet group."
type = string
}
variable "db_proxy_users" {
default = [
"application_dml",
"application_ddl",
]
description = "List of DB Proxy users."
type = list(string)
}
variable "deletion_protection" {
default = true
description = "If the DB instance should have deletion protection enabled."
type = bool
}
variable "enable_db_proxy" {
default = true
description = "Enable DB Proxy."
type = bool
}
variable "enabled_cloudwatch_logs_exports" {
default = [
"audit",
"error",
"general",
"slowquery"
]
description = "Set of log types to enable for exporting to CloudWatch logs."
type = list(string)
}
variable "engine" {
default = "aurora-mysql"
description = "The engine to use."
type = string
}
variable "engine_version" {
default = null
description = "The engine version to use."
type = string
}
variable "engine_mode" {
default = "provisioned"
description = "The engine mode to use."
type = string
}
variable "instance_class" {
description = "The instance type of the RDS instance."
type = string
}
variable "db_instance_family" {
default = "aurora-mysql8.0"
description = "The family of the DB parameter group."
type = string
}
variable "db_instance_parameter_group_name" {
description = "The name of the DB parameter group."
default = null
type = string
}
variable "db_instance_parameters" {
default = []
description = "The name and values of the DB parameters."
type = list(object({
apply_method = optional(string)
name = string
value = string
}))
}
variable "db_cluster_family" {
default = "aurora-mysql8.0"
description = "The family of the DB cluster group."
type = string
}
variable "db_cluster_parameter_group_name" {
description = "The name of the DB cluster parameter group."
default = null
type = string
}
variable "db_cluster_parameters" {
default = []
description = "The name and values of the DB parameters."
type = list(object({
apply_method = optional(string)
name = string
value = string
}))
}
variable "monitoring_interval" {
default = 60
description = "The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance."
type = number
}
variable "performance_insights_enabled" {
default = true
description = "Specifies whether Performance Insights is enabled or not."
type = bool
}
variable "performance_insights_retention_period" {
default = 7
description = "Amount of time in days to retain Performance Insights data."
type = number
}
variable "preferred_backup_window" {
default = "00:00-02:30"
description = "The daily time range (in UTC) during which automated backups are created if they are enabled."
type = string
}
variable "preferred_maintenance_window" {
default = "Mon:03:00-Mon:04:30"
description = "The weekly time range during which system maintenance can occur, in (UTC)."
type = string
}
variable "port" {
default = 3306
description = "The port on which the DB accepts connections."
type = number
}
variable "vpc_security_group_ids_rds_cluster" {
default = null
description = "List of VPC security groups to associate with the RDS Proxy."
type = list(string)
}
variable "vpc_security_group_ids_rds_proxy" {
default = null
description = "List of VPC security groups to associate with the RDS Proxy."
type = list(string)
}
variable "vpc_subnet_ids" {
description = "List of VPC subnet IDs."
type = list(string)
}