generated from TechNative-B-V/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
186 lines (155 loc) · 4.6 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
variable "name" {
description = "Unique name for RDS instance."
type = string
}
variable "subnet_ids" {
description = "Required list of subnets to launch instances in."
type = list(string)
}
variable "security_group_ids" {
description = "Provide at least one security group to be associated with this instance."
type = list(string)
}
variable "instance_class" {
description = "Instance class to be used for database instance."
type = string
default = "db.t3.medium"
}
variable "multi_az" {
description = "Use 2 AZs for high availability."
type = bool
default = true
}
variable "storage_type" {
description = "Storage type to be used for instances."
type = string
default = "gp2"
}
variable "storage_io1_iops" {
description = "Overrides storage_type to io1 if set and defines the provisioned iops required."
type = number
default = null # use storage_type by default
}
variable "allocated_storage" {
description = "Set the amount of storage to be used by RDS."
type = number
default = 20 # initial default for allocated_storage
}
variable "max_allocated_storage" {
description = "Set the maximum storage to be used by RDS."
type = number
default = 20 # initial default for allocated_storage
}
variable "auto_minor_version_upgrade" {
description = "Allow minor updates during maintenance window."
type = bool
default = true
}
variable "enabled_cloudwatch_logs_exports" {
description = "Enabled CloudWatch log exports."
type = list(string)
default = ["audit", "error", "general", "slowquery"]
}
variable "db_name" {
description = "Name of the database to create when the DB instance is created."
type = string
default = null
}
variable "engine" {
description = "RDS database engine to use."
type = string
default = "mariadb"
}
variable "engine_version" {
description = "RDS database engine version to use."
type = string
default = "10.5.12"
}
variable "engine_major_version" {
description = "RDS database engine version to use for option group."
type = string
default = "10.5"
}
variable "engine_family" {
description = "RDS database parameter group family."
type = string
default = "mariadb10.5"
}
variable "parameter_group_overrides" {
description = "Optional map of user defined parameters. The map key is the parameter name. The map contains value and apply_method as attributes."
type = map(object({
value = string
apply_method = string
}))
default = {}
}
variable "kms_key_arn" {
description = "KMS key to use for encrypting RDS instances."
type = string
}
variable "additional_tags" {
description = "Additional tags to be added to resources."
type = map(string)
default = {}
}
variable "replica" {
description = "create a read replica or not"
type = bool
default = false
}
variable "az" {
description = "specify availability zone for instance if preferred"
type = string
default = null
}
variable "az_replica" {
description = "specify availability zone for replica instance if preferred"
type = string
default = null
}
variable "username" {
description = "Set a username for database. If set to null, a random username will be created"
type = string
default = null
}
variable "password" {
description = "Set a password for username. If set to null, a random password will be created"
type = string
default = null
}
variable "backup_window" {
description = "Add a window in the folling format: 03:00-04:00"
default = "03:00-04:00"
}
variable "backup_retention_period" {
description = "number of days to retain backups"
default = 35
}
variable "enable_aws_backup_tag" {
description = "To enable aws backup service tag to RDS instance."
type = bool
default = false
}
variable "enable_aws_backup_tag_replica" {
description = "To enable aws backup service tag to RDS replica instance."
type = bool
default = false
}
variable "deletion_protection" {
description = "protect the instance from deletion"
default = false
}
variable "maintenance_window" {
description = "maintenance window for rds instance updates"
default = "Sun:02:00-Sun:03:00"
}
variable "performance_insights_enabled" {
description = "performance insights"
default = false
type = bool
}
variable "performance_insights_retention_period" {
description = "Retention period of performance insights data"
default = 31
type = number
}