-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
164 lines (137 loc) · 4.81 KB
/
variables.tf
File metadata and controls
164 lines (137 loc) · 4.81 KB
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
#############################
# documentdb/variables.tf #
#############################
variable "name" {
description = "DocumentDB name"
type = string
}
variable "master_username" {
description = "Username for the master DB user"
type = string
}
variable "master_password" {
description = "Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file. Please refer to the DocumentDB Naming Constraints"
type = string
}
variable "backup_retention_period" {
description = "Backup retention period"
type = number
}
variable "db_port" {
description = "DocumentDB port"
type = number
default = 27017
}
variable "engine" {
description = "The name of the database engine to be used for this DB cluster. Defaults to `docdb`. Valid values: `docdb`"
type = string
default = "docdb"
}
variable "engine_version" {
description = "The version number of the database engine to use"
type = string
default = "5.0.0"
}
variable "kms_key_alias" {
description = "The alias for the KMS encryption key. When specifying `kms_key_alias`, `storage_encrypted` needs to be set to `true`"
type = string
default = "alias/aws/rds"
}
variable "storage_encrypted" {
description = "Specifies whether the DB cluster is encrypted"
type = bool
default = true
}
variable "storage_type" {
description = "The storage type to associate with the DB cluster. Valid values: standard, iopt1"
type = string
default = "standard"
validation {
condition = contains(["standard", "iopt1"], var.storage_type)
error_message = "Error: storage_type value must be one of two options - 'standard' or 'iopt1'."
}
}
variable "skip_final_snapshot" {
description = "Determines whether a final DB snapshot is created before the DB cluster is deleted"
type = bool
default = true
}
variable "deletion_protection" {
description = "A value that indicates whether the DB cluster has deletion protection enabled"
type = bool
default = false
}
variable "apply_immediately" {
description = "Specifies whether any cluster modifications are applied immediately, or during the next maintenance window"
type = bool
default = true
}
variable "preferred_backup_window" {
description = "Daily time range during which the backups happen"
type = string
default = "07:00-09:00"
}
variable "preferred_maintenance_window" {
description = "The window to perform maintenance in. Syntax: `ddd:hh24:mi-ddd:hh24:mi`."
type = string
default = "Mon:22:00-Mon:23:00"
}
variable "vpc_security_group_ids" {
description = "VPC security groups for DocumentDB"
type = list(string)
default = []
}
variable "enabled_cloudwatch_logs_exports" {
type = list(string)
description = "List of log types to export to cloudwatch. The following log types are supported: `audit`, `profiler`"
default = []
}
variable "allow_major_version_upgrade" {
description = "Specifies whether major version upgrades are allowed. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/docdb_cluster#allow_major_version_upgrade"
type = bool
default = false
}
variable "auto_minor_version_upgrade" {
description = "Specifies whether any minor engine upgrades will be applied automatically to the DB instance during the maintenance window or not"
type = bool
default = true
}
variable "instance_class" {
description = "The instance class to use. For more details, see https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-classes.html#db-instance-class-specs"
type = string
default = "db.t3.medium"
}
variable "instance_count" {
description = "Number of DB instances to create in the cluster"
type = number
default = 1
}
variable "enable_performance_insights" {
description = "Specifies whether to enable Performance Insights for the DB Instance."
type = bool
default = false
}
variable "ca_cert_identifier" {
description = "The identifier of the CA certificate for the DB instance"
type = string
default = null
}
variable "subnet_ids" {
description = "List of VPC subnet IDs to place DocumentDB instances in"
type = list(string)
default = []
}
variable "cluster_family" {
description = "The family of the DocumentDB cluster parameter group. For more details, see https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-parameter-group-create.html"
type = string
default = "docdb5.0"
}
variable "cluster_parameters" {
description = "List of DB parameters to apply"
type = list(object({
apply_method = string
name = string
value = string
}))
default = []
}