-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_variables.tf
More file actions
103 lines (87 loc) · 1.63 KB
/
Copy path_variables.tf
File metadata and controls
103 lines (87 loc) · 1.63 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
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
variable "authorized_networks" {
type = list(object({
name = string
network = string
}))
default = []
}
variable "backup_config" {
type = object({
binary_log_enabled = optional(bool)
enabled = optional(bool)
location = optional(string, "eu")
})
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 "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 "instance_name" {
type = string
}
variable "labels" {
type = map(string)
default = {}
}
variable "primary_instance_name" {
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 "users" {
type = list(object({
name = string
host = optional(string)
}))
}
variable "project_prefix" {
type = string
default = null
}