forked from QuiNovas/terraform-aws-aurora-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
192 lines (160 loc) · 5.42 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
variable "allowed_cidr_blocks" {
description = "A list of CIDR blocks which are allowed to access the database"
type = list(string)
default = []
}
variable "allowed_security_groups" {
description = "A list of Security Group ID's to allow access to."
type = list(string)
default = []
}
variable "apply_immediately" {
description = "Determines whether or not any DB modifications are applied immediately, or during the maintenance window"
type = bool
default = false
}
variable "backtrack_window" {
description = "The target backtrack window, in seconds. Only available for aurora engine currently. To disable backtracking, set this value to 0. Defaults to 0. Must be between 0 and 259200 (72 hours)"
type = number
default = 0
}
variable "backup_retention_period" {
description = "How long to keep backups for (in days)"
type = number
default = 7
}
variable "copy_tags_to_snapshot" {
description = "Copy all Cluster tags to snapshots."
type = bool
default = false
}
variable "database_name" {
description = "Name for an automatically created database on cluster creation"
type = string
default = ""
}
variable "db_cluster_parameter_group_name" {
description = "The name of a DB Cluster parameter group to use. Default groups are created if not provided"
type = string
default = ""
}
variable "db_parameter_group_name" {
description = "The name of a DB parameter group to use. Default groups are created if not provided"
type = string
default = ""
}
variable "deletion_protection" {
description = "If the DB instance should have deletion protection enabled"
type = bool
default = false
}
variable "enable_http_endpoint" {
description = "Enable http endpoint"
type = string
default = true
}
variable "enabled_cloudwatch_logs_exports" {
description = "List of log types to export to cloudwatch"
type = list(string)
default = []
}
variable "engine" {
description = "Aurora database engine type, currently aurora, aurora-mysql or aurora-postgresql"
type = string
}
variable "engine_version" {
description = "Aurora database engine version."
type = string
}
variable "final_snapshot_identifier_prefix" {
description = "The prefix name to use when creating a final snapshot on cluster destroy, appends a random 8 digits to name to ensure it's unique too."
type = string
default = "final"
}
variable "global_cluster_identifier" {
description = "The global cluster identifier specified on aws_rds_global_cluster"
type = string
default = ""
}
variable "iam_database_authentication_enabled" {
description = "Specifies whether IAM Database authentication should be enabled or not. Not all versions and instances are supported. Refer to the AWS documentation to see which versions are supported."
type = bool
default = false
}
variable "iam_roles" {
description = "A List of ARNs for the IAM roles to associate to the RDS Cluster."
type = list(string)
default = []
}
variable "kms_key_id" {
description = "The ARN for the KMS encryption key if one is set to the cluster."
type = string
default = ""
}
variable "monitoring_interval" {
description = "The interval (seconds) between points when Enhanced Monitoring metrics are collected"
type = number
default = 0
}
variable "name" {
description = "The name of resources created, used either directly or as a prefix."
type = string
}
variable "preferred_backup_window" {
description = "When to perform DB backups"
type = string
default = "02:00-03:00"
}
variable "preferred_maintenance_window" {
description = "When to perform DB maintenance"
type = string
default = "sun:05:00-sun:06:00"
}
variable "replication_source_identifier" {
description = "ARN of a source DB cluster or DB instance if this DB cluster is to be created as a Read Replica."
type = string
default = ""
}
variable "scaling_configuration" {
description = "Map of nested attributes with scaling properties. Only valid when engine_mode is set to `serverless`"
type = map(string)
default = {}
}
variable "skip_final_snapshot" {
description = "Should a final snapshot be created on cluster destroy"
type = bool
default = false
}
variable "snapshot_identifier" {
description = "DB snapshot to create this database from"
type = string
default = ""
}
variable "source_region" {
description = "The source region for an encrypted replica DB cluster."
default = ""
}
variable "storage_encrypted" {
description = "Specifies whether the underlying storage layer should be encrypted"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources."
type = map(string)
default = {}
}
variable "username" {
description = "Master DB username"
type = string
default = "root"
}
variable "vpc_config" {
description = "Map of these attributes is required. cidr_block(string), database_subnets(list(string)) atleast 3, azs(list of Avaliability zones(string) atleast 3)"
type = any
}
variable "vpc_security_group_ids" {
description = "List of VPC security groups to associate to the cluster in addition to the SG we create in this module"
type = list(string)
default = []
}