-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
93 lines (69 loc) · 2.65 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
variable "google_cloud_project_id" {
type = string
description = "The ID of the GCP project to deploy in."
}
variable "google_cloud_region" {
type = string
description = "The GCP region to deploy in"
}
variable "resource_affix" {
type = string
description = "The affix to add to each resource controlled by this module."
}
variable "api_url" {
type = string
description = "The URL for the API e.g. 'api.strands.octue.com'"
}
variable "maintainer_service_account_emails" {
type = set(string)
description = "The email addresses of the maintainers' IAM service accounts."
}
variable "environment" {
type = string
default = "main"
description = "The name of the environment to deploy the resources in (must be one word with no hyphens or underscores in). This can be derived from a Terraform workspace name and used to facilitate e.g. testing and staging environments alongside the production environment ('main')."
}
variable "secret_names" {
description = "A list of secrets to be created and made accessible to the cloud run instance."
type = set(string)
default = [
"django-secret-key",
"database-proxy-url",
"database-url",
"stripe-secret-key",
]
}
variable "minimum_instances" {
type = number
default = 0
description = "The minimum number of instances for the Cloud Run service (set at the service level, not revision level)."
}
variable "maximum_instances" {
type = number
default = 10
description = "The maximum number of instances for the Cloud Run service (set at the revision level, not service level)."
}
variable "tasks_queue_name_suffix" {
type = string
default = ""
description = "An optional suffix to be added to the resource name of the task queue. Only use when attempting to recreate a queue after it has been deleted as a queue with the same name cannot be created within 7 days."
}
variable "database_tier" {
type = string
default = "db-f1-micro"
description = "The machine type to use for the database."
}
variable "database_availability_type" {
type = string
default = "ZONAL"
validation {
condition = length(regexall("^(ZONAL|REGIONAL)$", var.database_availability_type)) > 0
error_message = "ERROR: Valid types are \"ZONAL\" and \"REGIONAL\"."
}
description = "Must be one of 'ZONAL' (low availability) and 'REGIONAL' (high availability)."
}
variable "deletion_protection" {
type = bool
default = true
description = "If `true`, disallow deletion of the database and Cloud Run services. `terraform apply` must be run after setting this to `false` before `terraform destroy` will work."
}