-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvariables.tf
More file actions
168 lines (140 loc) · 5.01 KB
/
Copy pathvariables.tf
File metadata and controls
168 lines (140 loc) · 5.01 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
variable "project" {
description = "The GCP project ID to deploy your Serverpod infrastructure to."
type = string
}
variable "runmode" {
description = "The runmode to deploy your Serverpod infrastructure in. This can be 'production' or 'development'."
type = string
default = "production"
}
variable "region" {
description = "The GCP region to deploy your Serverpod infrastructure to. Defaults to 'us-central1'."
type = string
default = "us-central1"
}
variable "zone" {
description = "The GCP zone to deploy your Serverpod infrastructure to. Defaults to 'us-central1-c'."
type = string
default = "us-central1-c"
}
variable "top_domain" {
description = "The top domain to deploy your Serverpod infrastructure to. E.g. 'example.com'."
type = string
}
variable "autoscaling_min_size" {
description = "The minimum number of instances to run in the autoscaling group. Defaults to 1."
default = 1
}
variable "autoscaling_max_size" {
description = "The maximum number of instances to run in the autoscaling group. Defaults to 2."
default = 2
}
variable "service_account_email" {
description = "The email address of the service account to use for the Serverpod infrastructure."
type = string
default = ""
}
variable "autoscaling_cpu_utilization" {
description = "The CPU utilization to use for the autoscaling group. Defaults to 0.6."
type = number
default = 0.6
}
variable "machine_type" {
description = "The machine type to use for the autoscaling group. Defaults to 'e2-micro'."
type = string
default = "e2-micro"
}
variable "enable_ssh" {
description = "Whether to enable SSH access to instances in the autoscaling group. Defaults to true."
type = bool
default = true
}
variable "database_version" {
description = "The version of the database to use. Defaults to 'POSTGRES_16'. Note that only PostgreSQL is supported."
type = string
default = "POSTGRES_16"
}
variable "redis_version" {
description = "The version of Redis to use. Defaults to 'REDIS_7_2'."
type = string
default = "REDIS_7_2"
}
variable "database_tier" {
description = "The tier of the database to use. Defaults to 'db-f1-micro'."
type = string
default = "db-f1-micro"
}
variable "database_deletion_protection" {
description = "Whether to enable deletion protection for the database. Defaults to true."
type = bool
default = true
}
variable "database_availability_type" {
description = "The availability type of the database to use. Defaults to 'ZONAL', which represents a single zone."
type = string
default = "ZONAL"
}
variable "database_backup_enabled" {
description = "Whether to enable backups for the database. Defaults to true."
type = bool
default = true
}
variable "database_backup_point_in_time_recovery_enabled" {
description = "Whether to enable point in time recovery for the database. Defaults to false."
type = bool
default = false
}
variable "database_password" {
description = "The password to use for the database. You can find the password in your 'config/passwords.yaml' file."
type = string
}
variable "dns_managed_zone" {
description = "The name of the DNS managed zone to use for the Serverpod infrastructure. If this is not set, a new managed zone will be created."
type = string
default = ""
}
variable "subdomain_prefix" {
description = "The subdomain prefix to use for the Serverpod infrastructure. This is useful to set for your staging environment, in which case all sub domains will be prefixed with this value."
type = string
default = ""
}
variable "subdomain_web" {
description = "The subdomain to use for the web server. Defaults to 'app', but you may want to change it to 'www' if you have set 'use_top_domain_for_web' to true."
type = string
default = "app"
}
variable "use_top_domain_for_web" {
description = "Whether to use the top domain for the web server. Defaults to false."
type = bool
default = false
}
variable "enable_redis" {
description = "Whether to enable Redis. Defaults to false."
type = bool
default = false
}
variable "redis_tier" {
description = "The tier of the Redis instance to use, if it is enabled. Defaults to 'BASIC'."
type = string
default = "BASIC"
}
variable "redis_memory_size_gb" {
description = "The memory size of the Redis instance to use in gigabytes, if it is enabled. Defaults to 1."
type = number
default = 1
}
variable "enable_storage" {
description = "Whether to enable storage. Defaults to true."
type = bool
default = true
}
variable "storage_bucket_location" {
description = "The location of the storage buckets. Defaults to 'US'."
type = string
default = "US"
}
variable "storage_bucket_class" {
description = "The class of the storage buckets. Defaults to 'STANDARD'."
type = string
default = "STANDARD"
}