-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
52 lines (46 loc) · 1.53 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
variable "google_cloud" {
description = <<EOF
The Google Cloud settings for the Observatory Platform.
project_id: the Google Cloud project id.
region: the Google Cloud region.
EOF
type = object({
project_id = string
region = string
})
}
variable "name" {
description = "Name of the API project, e.g. observatory, ao or oaebu"
type = string
validation {
condition = length(var.name) <= 16
error_message = "Name of the API has to be <= 16 characters."
}
}
variable "domain_name" {
description = "The custom domain name for the API, used for the google cloud endpoints service"
type = string
}
variable "backend_image" {
description = "The image URL that will be used for the Cloud Run backend, e.g. 'us-docker.pkg.dev/your-project-name/observatory-platform/observatory-api:0.3.1'"
type = string
}
variable "gateway_image" {
description = "The image URL that will be used for the Cloud Run gateway (endpoints service), e.g. 'gcr.io/endpoints-release/endpoints-runtime-serverless:2'"
type = string
}
variable "env_vars" {
description = <<EOF
Dictionary with environment variable keys and values that will be added to the Cloud Run backend.
A Google Cloud secret is created for each variable, the variable is then accessed from inside the Cloud Run service
using berglas.
EOF
type = map(string)
sensitive = true
}
variable "cloud_run_annotations" {
description = <<EOF
The annotations that are added to the Cloud Run backend service.
EOF
type = map(string)
}