forked from cloudposse/terraform-aws-rds-cluster
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
215 lines (177 loc) · 5.64 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
variable "namespace" {
type = "string"
description = "Namespace (e.g. `eg` or `cp`)"
}
variable "stage" {
type = "string"
description = "Stage (e.g. `prod`, `dev`, `staging`)"
}
variable "name" {
type = "string"
description = "Name of the application"
}
variable "zone_id" {
type = "string"
default = ""
description = "Route53 parent zone ID. If provided (not empty), the module will create sub-domain DNS records for the DB master and replicas"
}
variable "security_groups" {
type = "list"
default = []
description = "List of security groups to be allowed to connect to the DB instance"
}
variable "vpc_id" {
type = "string"
description = "VPC ID to create the cluster in (e.g. `vpc-a22222ee`)"
}
variable "subnets" {
type = "list"
description = "List of VPC subnet IDs"
}
variable "instance_type" {
type = "string"
default = "db.t2.small"
description = "Instance type to use"
}
variable "cluster_size" {
type = "string"
default = "2"
description = "Number of DB instances to create in the cluster"
}
variable "snapshot_identifier" {
type = "string"
default = ""
description = "Specifies whether or not to create this cluster from a snapshot"
}
variable "db_name" {
type = "string"
description = "Database name"
}
variable "db_port" {
type = "string"
default = "3306"
description = "Database port"
}
variable "admin_user" {
type = "string"
default = "admin"
description = "(Required unless a snapshot_identifier is provided) Username for the master DB user"
}
variable "admin_password" {
type = "string"
default = ""
description = "(Required unless a snapshot_identifier is provided) Password for the master DB user"
}
variable "retention_period" {
type = "string"
default = "5"
description = "Number of days to retain backups for"
}
variable "backup_window" {
type = "string"
default = "07:00-09:00"
description = "Daily time range during which the backups happen"
}
variable "maintenance_window" {
type = "string"
default = "wed:03:00-wed:04:00"
description = "Weekly time range during which system maintenance can occur, in UTC"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `name`, `namespace`, `stage` and `attributes`"
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "cluster_parameters" {
type = "list"
default = []
description = "List of DB parameters to apply"
}
variable "instance_parameters" {
type = "list"
default = []
description = "List of DB instance parameters to apply"
}
variable "cluster_family" {
type = "string"
default = "aurora5.6"
description = "The family of the DB cluster parameter group"
}
variable "engine" {
type = "string"
default = "aurora"
description = "The name of the database engine to be used for this DB cluster. Valid values: `aurora`, `aurora-mysql`, `aurora-postgresql`"
}
variable "engine_mode" {
type = "string"
default = "provisioned"
description = "The database engine mode. Valid values: `parallelquery`, `provisioned`, `serverless`"
}
variable "engine_version" {
type = "string"
default = ""
description = "The version number of the database engine to use"
}
variable "scaling_configuration" {
type = "list"
default = []
description = "List of nested attributes with scaling properties. Only valid when engine_mode is set to `serverless`"
}
variable "allowed_cidr_blocks" {
type = "list"
default = []
description = "List of CIDR blocks allowed to access"
}
variable "enabled" {
description = "Set to false to prevent the module from creating any resources"
default = "true"
}
variable "publicly_accessible" {
description = "Set to true if you want your cluster to be publicly accessible (such as via QuickSight)"
default = "false"
}
variable "storage_encrypted" {
description = "Specifies whether the DB cluster is encrypted. The default is `false` for `provisioned` `engine_mode` and `true` for `serverless` `engine_mode`"
default = "false"
}
variable "skip_final_snapshot" {
description = "Determines whether a final DB snapshot is created before the DB cluster is deleted"
default = "true"
}
variable "apply_immediately" {
description = "Specifies whether any cluster modifications are applied immediately, or during the next maintenance window"
default = "true"
}
variable "iam_database_authentication_enabled" {
description = "Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled."
default = "false"
}
variable "rds_monitoring_interval" {
description = "Interval in seconds that metrics are collected, 0 to disable (values can only be 0, 1, 5, 10, 15, 30, 60)"
default = "0"
}
variable "rds_monitoring_role_arn" {
type = "string"
default = ""
description = "The ARN for the IAM role that can send monitoring metrics to CloudWatch Logs"
}
variable "allow_major_version_upgrade" {
default = "false"
description = "Enable to allow major engine version upgrades when changing engine versions."
}
variable "db_cluster_parameter_group_name" {
description = "DB Cluster parameter group name."
}
variable "db_parameter_group_name" {
description = "DB parameter group name."
}