| 1 |
# Copyright 2018 The Go Cloud Development Kit Authors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
variable "project" { |
| 16 |
type = string |
| 17 |
description = "Project to set up." |
| 18 |
} |
| 19 |
|
| 20 |
variable "region" { |
| 21 |
type = string |
| 22 |
description = "GCP region to create database and storage in, for example 'us-central1'. See https://cloud.google.com/compute/docs/regions-zones/ for valid values." |
| 23 |
} |
| 24 |
|
| 25 |
variable "zone" { |
| 26 |
type = string |
| 27 |
description = "GCP zone to create the GKE cluster in, for example 'us-central1-a'. See https://cloud.google.com/compute/docs/regions-zones/ for valid values." |
| 28 |
} |
| 29 |
|
| 30 |
variable "server_service_account_name" { |
| 31 |
default = "guestbook" |
| 32 |
description = "The username part of the service account email that will be used for the server running inside the GKE cluster." |
| 33 |
} |
| 34 |
|
| 35 |
variable "db_access_service_account_name" { |
| 36 |
default = "guestbook-db" |
| 37 |
description = "The username part of the service account email that will be used for provisioning the database." |
| 38 |
} |
| 39 |
|
| 40 |
variable "cluster_name" { |
| 41 |
default = "guestbook-cluster" |
| 42 |
description = "The GKE cluster name." |
| 43 |
} |
| 44 |
|