-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
36 lines (31 loc) · 1.16 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
#User-defined variables
variable "project_id" {
description = "A globally unique identifier for your project"
default = "YOUR_PROJECT"
}
variable "resource_prefix" {
description = "Platform deployment identifier. This variable is part of GCS state bucket name, so it should follow GCS naming restrictions. Length from 3 to 11 symbols. Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-). Bucket names must begin and end with a letter or number."
default = "adp"
validation {
condition = length(var.resource_prefix) > 2 && length(var.resource_prefix) < 12
error_message = "ResourcePrefix value must be a length Length from 2 to 11 symbols."
}
}
variable "region" {
description = "Enter region for platform"
default = "us-central1"
}
variable "zone" {
description = "Main zone in region"
default = "us-central1-a"
}
variable "docker_registry" {
description = "Docker registry from the Google Artifact Registry"
default = "YOUR_REGISTRY"
type = string
}
variable "image_tag" {
description = "Tags of images from the Google Artifact Registry"
default = "0.10.0"
type = string
}