Debian Codegraph @

samples/guestbook/gcp/outputs.tf

raw
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 output "project" {
16 value = var.project
17 description = "The GCP project ID."
18 }
19
20 output "server_service_account" {
21 value = google_service_account.server.email
22 description = "The service account email that will be used for the server running inside the GKE cluster."
23 }
24
25 output "db_access_service_account" {
26 value = google_service_account.db_access.email
27 description = "The service account email that was used for provisioning the database."
28 }
29
30 output "cluster_name" {
31 value = var.cluster_name
32 description = "GKE cluster name."
33 }
34
35 output "cluster_zone" {
36 value = google_container_cluster.guestbook.zone
37 description = "GCP zone that the GKE cluster is in."
38 }
39
40 output "bucket" {
41 value = local.bucket_name
42 description = "Name of the GCS bucket created to store images."
43 }
44
45 output "database_instance" {
46 value = google_sql_database_instance.guestbook.name
47 description = "Cloud SQL instance name."
48 }
49
50 output "database_root_password" {
51 value = random_string.db_password.result
52 sensitive = true
53 description = "The Cloud SQL instance password for root."
54 }
55
56 output "database_region" {
57 value = var.region
58 description = "The Cloud SQL instance region."
59 }
60
61 output "motd_var_config" {
62 value = google_runtimeconfig_config.guestbook.name
63 description = "The name of the Runtime Configurator config resource that contains the Message of the Day variable."
64 }
65
66 output "motd_var_name" {
67 value = google_runtimeconfig_variable.motd.name
68 description = "The name of the Runtime Configurator variable inside the config resource that contains the Message of the Day."
69 }
70