This repository was archived by the owner on May 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
131 lines (107 loc) · 3.5 KB
/
variables.tf
File metadata and controls
131 lines (107 loc) · 3.5 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
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
129
130
131
variable "env" {
type = string
description = "The environment where the Cloud SQL instance must be created. E.g.: \"staging\" or \"production\"."
}
variable "name" {
type = string
description = "The base name to be given to Cloud SQL instance. Prefix and suffix will be added to it afterwards."
}
variable "zone" {
type = string
description = "GCP compute engine zone."
}
variable "tier" {
type = string
description = "The GCP machine type to use. Check Terraform docs to see the options."
}
variable "disk_size" {
type = number
description = "The size of data disk, in GB."
}
variable "disk_type" {
type = string
description = "The type of data disk: PD_SSD or PD_HDD."
}
variable "require_ssl" {
type = bool
description = "Whether SSL connections over IP are enforced or not."
}
variable "private_network" {
type = string
description = "The VPC network from which the Cloud SQL instance is accessible for private IP."
}
variable "enable_public_ip" {
type = bool
default = true # for backwards compatibility only
description = "Wheter a public IP address must be assigned to this Cloud SQL instance or not."
}
variable "database_version" {
type = string
description = "The MySQL, PostgreSQL or SQL Server version to use. Check Terraform docs to see possible values."
}
variable "database_flags" {
type = map(string)
default = {}
description = "Flags to be assigned to the Cloud SQL instance. Check Terraform docs to see possible options."
}
variable "availability_type" {
description = "The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL)."
default = "ZONAL"
}
variable "app_name" {
type = string
description = "Name of the application the DB will serve to as data backend."
}
variable "labels" {
type = map(any)
default = {}
description = "A set of key/value user label pairs to assign to the instance."
}
variable "team" {
type = string
description = "Name of the organization team that is in charge of the application and DB."
}
variable "cost_type" {
type = string
description = "The type of cost this DB incurs into."
}
variable "sql_user_name" {
type = list(string)
default = []
description = "A list of user names to create Google SQL Users from."
}
variable "sql_user_host" {
type = list(string)
default = []
description = "A list of hosts the Google SQL Users would be allowed to connect from."
}
variable "binary_log_enabled" {
default = "true"
}
variable "authorized_networks" {
description = "A map of key/value pairs in the form of Name = CIDR. E.g.: \"hb-staging\" = \"34.76.130.19/32\""
type = map(string)
default = {}
}
variable "wait_after_create" {
type = number
default = 1
description = "Amount of seconds to wait after the Cloud SQL instance is created."
}
variable "backup_bucket" {
type = string
description = "Name of the GCP Storage Bucket used to keep DB backups."
}
variable "import_bucket" {
type = string
description = "Name of the GCP Storage Bucket where DB can be imported from."
}
variable "deletion_protection" {
default = true
description = "If a DB instance should not be deleted by terraform, unless this flag changed manually."
}
variable "database_name" {
type = string
default = ""
description = "The name of the database to be created in the instance, if any."
}