forked from cloudposse/terraform-aws-rds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
176 lines (135 loc) · 3.88 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
variable "stage" {
default = "default"
}
variable "namespace" {
default = "global"
}
variable "name" {
default = "app"
}
variable "dns_zone_id" {}
variable "host_name" {
default = "db"
}
variable "security_group_ids" {
type = "list"
}
variable "database_name" {}
variable "database_user" {}
variable "database_password" {}
variable "database_port" {}
variable "multi_az" {
description = "Set to true if multi AZ deployment must be supported"
default = "false"
}
variable "storage_type" {
description = "One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD)."
default = "standard"
}
variable "storage_encrypted" {
description = "(Optional) Specifies whether the DB instance is encrypted. The default is false if not specified."
default = "false"
}
variable "iops" {
description = "The amount of provisioned IOPS. Setting this implies a storage_type of 'io1'. Default is 0 if rds storage type is not 'io1'"
default = "0"
}
variable "allocated_storage" {
description = "The allocated storage in GBs"
# Number, e.g. 10
}
variable "engine" {
description = "Database engine type"
# http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
# - mysql
# - postgres
# - oracle-*
# - sqlserver-*
}
variable "engine_version" {
description = "Database engine version, depends on engine type"
# http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
}
variable "instance_class" {
description = "Class of RDS instance"
# https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html
}
# This is for custom parameters to be passed to the DB
# We're "cloning" default ones, but we need to specify which should be copied
variable "db_parameter_group" {
description = "Parameter group, depends on DB engine used"
# "mysql5.6"
# "postgres9.5"
}
variable "publicly_accessible" {
description = "Determines if database can be publicly available (NOT recommended)"
default = "false"
}
variable "subnet_ids" {
description = "List of subnets for the DB"
type = "list"
}
variable "vpc_id" {
type = "string"
}
variable "auto_minor_version_upgrade" {
description = "Allow automated minor version upgrade"
default = "true"
}
variable "allow_major_version_upgrade" {
description = "Allow major version upgrade"
default = "false"
}
variable "apply_immediately" {
description = "Specifies whether any database modifications are applied immediately, or during the next maintenance window"
default = "false"
}
variable "maintenance_window" {
description = "The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi' UTC "
default = "Mon:03:00-Mon:04:00"
}
variable "skip_final_snapshot" {
description = "If true (default), no snapshot will be made before deleting DB"
default = "true"
}
variable "copy_tags_to_snapshot" {
description = "Copy tags from DB to a snapshot"
default = "true"
}
variable "backup_retention_period" {
description = "Backup retention period in days. Must be > 0 to enable backups"
default = 0
}
variable "backup_window" {
description = "When AWS can perform DB snapshots, can't overlap with maintenance window"
default = "22:00-03:00"
}
variable "delimiter" {
type = "string"
default = "-"
}
variable "attributes" {
type = "list"
default = []
}
variable "tags" {
type = "map"
default = {}
}
variable "db_parameter" {
type = "list"
default = []
}
variable "snapshot_identifier" {
description = "Snapshot name e.g: rds:production-2015-06-26-06-05"
default = ""
}
variable "final_snapshot_identifier" {
description = "Identifier e.g.: some-db-final-snapshot-2015-06-26-06-05"
type = "string"
default = ""
}
variable "parameter_group_name" {
description = "Name of the DB parameter group to associate"
default = ""
}