generated from opsd-io/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
95 lines (81 loc) · 2.09 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 database cluster."
type = string
nullable = false
}
variable "replica_cluster_name" {
description = "The name of the replica database cluster."
type = string
default = null
}
variable "node_count" {
description = "Number of postgresql nodes that will be created."
type = number
default = 1
}
variable "node_size" {
description = "The postgresql node instance size."
type = string
default = "db-s-1vcpu-1gb"
}
variable "replica_node_size" {
description = "The postgresql replica node instance size."
type = string
default = "db-s-1vcpu-1gb"
}
variable "postgresql_version" {
description = "Engine version used by the cluster."
type = number
default = 16
}
variable "region" {
description = "DigitalOcean region where the cluster will reside."
type = string
nullable = false
}
variable "replica_region" {
description = "DigitalOcean replica region where the cluster will reside."
type = string
default = null
}
variable "tags" {
description = "A list of tag names to be applied to the database cluster."
type = set(string)
default = []
}
variable "firewall_rules" {
description = "List of trusted sources associated with the cluster."
type = list(object({
type = string
value = string
}))
default = []
}
variable "replica_firewall_rules" {
description = "List of trusted sources associated with the replica cluster."
type = list(object({
type = string
value = string
}))
default = []
}
variable "database_users" {
description = "List of users."
type = set(string)
default = []
}
variable "replica_enable" {
description = "Flag to control the replica creation."
type = bool
default = false
}
variable "vpc_uuid" {
description = "The ID of the VPC where the load balancer will be located."
type = string
default = null
}
variable "timezone" {
description = "PostgreSQL service timezone"
type = string
default = "UTC"
}