-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
51 lines (42 loc) · 1.7 KB
/
variables.tf
File metadata and controls
51 lines (42 loc) · 1.7 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ---------------------------------------------------------------------------------------------------------------------
variable "name" {
description = "The name of the DB"
type = string
}
variable "instance_class" {
description = "The instance class of the DB (e.g. db.t2.micro)"
type = string
}
variable "allocated_storage" {
description = "The amount of space, in GB, to allocate for the DB"
type = number
}
variable "storage_type" {
description = "The type of storage to use for the DB. Must be one of: standard, gp2, or io1."
type = string
}
variable "master_username" {
description = "The username for the master user of the DB"
type = string
sensitive = true
}
variable "master_password" {
description = "The password for the master user of the DB"
type = string
sensitive = true
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL VARIABLES
# ---------------------------------------------------------------------------------------------------------------------
variable "skip_final_snapshot" {
description = "If set to true, skip the final snapshot of the DB when it is being deleted. In production, this should always be false. Only set it to true for automated testing."
type = bool
default = false
}
variable "engine_version" {
description = "The version of MySQL to run. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Concepts.VersionMgmt.html"
type = string
default = "8.0.36"
}