-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
95 lines (79 loc) · 2.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
variable "cluster_name" {
description = "The name of the cluster"
type = string
}
variable "cluster_engine" {
description = "Database engine used by the cluster (ex. pg for PostreSQL, mysql for MySQL, redis for Redis, or mongodb for MongoDB)"
type = string
}
variable "cluster_version" {
description = "The version of the cluster"
type = string
}
variable "cluster_size" {
description = "Database Droplet size associated with the cluster (ex. db-s-1vcpu-1gb)"
type = string
}
variable "cluster_region" {
description = "DigitalOcean region where the cluster will reside"
type = string
}
variable "cluster_node_count" {
description = "Number of nodes that will be included in the cluster"
type = number
}
variable "cluster_private_network_uuid" {
description = "The ID of the VPC where the database cluster will be located"
type = string
default = null
}
variable "cluster_tags" {
description = "A list of optional tags to add to the cluster"
type = list(string)
default = []
}
variable "redis_eviction_policy" {
description = "A string specifying the eviction policy for a Redis cluster. Valid values are: noeviction, allkeys_lru, allkeys_random, volatile_lru, volatile_random, or volatile_ttl"
type = string
default = null
}
variable "mysql_sql_mode" {
description = "A comma separated string specifying the SQL modes for a MySQL cluster."
type = string
default = null
}
variable "cluster_maintenance" {
description = "The day and the start hour of the maintenance window policy"
type = map(string)
default = null
}
variable "databases" {
description = "A list of databases in the cluster"
type = list(string)
default = []
}
variable "users" {
description = "A list of users in the cluster"
type = list(map(string))
default = null
}
variable "create_pools" {
description = "Controls if pools should be created"
type = bool
default = false
}
variable "pools" {
description = "A list of connection pools in the cluster"
type = list(map(string))
default = null
}
variable "create_firewall" {
description = "Controls if firewall should be created"
type = bool
default = false
}
variable "firewall_rules" {
description = "List of firewall rules associated with the cluster"
type = list(map(string))
default = []
}