-
Notifications
You must be signed in to change notification settings - Fork 13
/
variables.tf
90 lines (75 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables are expected to be passed in by the operator.
# ---------------------------------------------------------------------------------------------------------------------
variable "project" {
description = "The project ID where all resources will be launched."
type = string
}
variable "location" {
description = "The location (region or zone) to deploy the Cloud Run services. Note: Be sure to pick a region that supports Cloud Run."
type = string
}
variable "gcr_region" {
description = "Name of the GCP region where the GCR registry is located. e.g: 'us' or 'eu'."
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# Generally, these values won't need to be changed.
# ---------------------------------------------------------------------------------------------------------------------
variable "service_name" {
description = "The name of the Cloud Run service to deploy."
type = string
default = "sample-docker-service"
}
variable "repository_name" {
description = "Name of the Google Cloud Source Repository to create."
type = string
default = "sample-docker-app"
}
variable "image_name" {
description = "The name of the image to deploy. Defaults to a publically available image."
type = string
default = "gcr.io/cloudrun/hello"
}
variable "branch_name" {
description = "Example branch name used to trigger builds."
type = string
default = "master"
}
variable "digest" {
description = "The docker image digest or tag to deploy."
type = string
default = "latest"
}
variable "deploy_db" {
description = "Whether to deploy a Cloud SQL database or not."
type = bool
default = false
}
variable "db_instance_name" {
description = "The name of the Cloud SQL database instance."
type = string
default = "master-mysql-instance"
}
variable "db_name" {
description = "The name of the Cloud SQL database."
type = string
default = "exampledb"
}
variable "db_username" {
description = "The name of the Cloud SQL database user."
type = string
default = "testuser"
}
variable "db_password" {
description = "The password of the Cloud SQL database user."
type = string
default = "testpassword"
}
variable "db_user_host" {
description = "The host of the Cloud SQL database user. Used by MySQL."
type = string
default = "%"
}