-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
101 lines (93 loc) · 2.29 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
variable "mysql_version" {
type = string
default = "8"
description = "MySQL Engine Version"
}
variable "instance_class" {
type = string
default = "db-f1-micro"
description = <<EOF
The machine type to use.
By default, configured with db-f1-micro.
Available options:
db-f1-micro
db-g1-small
db-n1-standard-1
db-n1-standard-2
db-n1-standard-4
db-n1-standard-8
db-n1-standard-16
db-n1-standard-32
db-n1-standard-64
db-n1-standard-96
db-n1-highmem-2
db-n1-highmem-4
db-n1-highmem-8
db-n1-highmem-16
db-n1-highmem-32
db-n1-highmem-64
db-n1-highmem-96
EOF
}
variable "allocated_storage" {
type = number
default = 10
description = "Allocated storage in GB"
}
variable "backup_retention_count" {
type = number
default = 5
description = "The number of backups that are retained before the oldest is deleted"
}
variable "maintenance_window" {
type = object({
day : number
hour : number
})
default = {
day = 7
hour = 23
}
description = <<EOF
Configuration for maintenance window.
Day of week => 1-7 starts on Monday.
Hour of day => 0-23.
By default, configured for Sunday at 11:00 PM.
EOF
}
variable "high_availability" {
type = bool
default = false
description = <<EOF
Enables high availability and failover support on the database instance.
By default, this is disabled. It is recommended to enable this in production environments.
In dev environments, it is best to turn off to save on costs.
EOF
}
variable "enforce_ssl" {
type = bool
default = false
description = <<EOF
By default, the mysql cluster will have SSL enabled.
This toggle will require an SSL connection.
This is highly recommended if you have public access enabled.
EOF
}
variable "enable_public_access" {
type = bool
default = false
description = <<EOF
By default, the mysql cluster is not accessible to the public.
If you want to access your database, we recommend using a bastion instead.
EOF
}
/*
variable "custom_mysql_params" {
type = map(string)
default = {}
description = <<EOF
This is a dictionary of parameters to custom-configure the RDS postgres instance.
For a list of parameters, see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Parameters.html
EOF
}
*/