-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_variables.tf
128 lines (108 loc) · 2.22 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
variable "authorized_networks" {
type = list(object({
name = string
network = string
expiration_time = optional(string)
}))
default = []
}
variable "backup_config" {
type = object({
enabled = optional(bool)
start_time = optional(string)
point_in_time_recovery_enabled = optional(bool, false)
location = optional(string, "eu")
transaction_log_retention_days = optional(number, 7)
retained_backups = optional(number, 7)
})
default = {}
}
variable "database_version" {
type = string
}
variable "databases" {
type = list(string)
}
variable "deletion_protection" {
type = bool
default = true
}
variable "environment" {
type = string
validation {
condition = contains(["production", "staging"], var.environment)
error_message = "Environment must be production or staging."
}
}
variable "flags" {
type = map(string)
default = {}
}
variable "highly_available" {
type = bool
}
variable "instance_name" {
type = string
}
variable "insights_config" {
type = object({
query_insights_enabled = bool
query_string_length = optional(number, 1024)
record_application_tags = optional(bool, false)
record_client_address = optional(bool, false)
})
default = {
query_insights_enabled = true
}
}
variable "ipv4_enabled" {
type = bool
default = true
}
variable "labels" {
type = map(string)
default = {}
}
variable "legacy_users" {
type = list(string)
default = []
}
variable "maintenance_window" {
type = object({
day = number
hour = number
update_track = optional(string)
})
default = {
day = 1
hour = 4
update_track = "stable"
}
}
variable "primary_instance_name" {
type = string
default = null
}
variable "private_network" {
type = string
default = null
}
variable "storage_autoresize" {
type = bool
}
variable "storage_limit" {
type = number
default = 0
}
variable "storage_size" {
type = number
default = 0
}
variable "tier" {
type = string
default = null
}
variable "project_prefix" {
type = string
default = null
}