xref: /aosp_15_r20/external/google-cloud-java/java-bigqueryconnection/.cloud/env.sh (revision 55e87721aa1bc457b326496a7ca40f3ea1a63287)
1*55e87721SMatt Gilbride#!/bin/bash
2*55e87721SMatt Gilbride#
3*55e87721SMatt Gilbride# Copyright 2022 Google LLC
4*55e87721SMatt Gilbride#
5*55e87721SMatt Gilbride# Licensed under the Apache License, Version 2.0 (the "License");
6*55e87721SMatt Gilbride# you may not use this file except in compliance with the License.
7*55e87721SMatt Gilbride# You may obtain a copy of the License at
8*55e87721SMatt Gilbride#
9*55e87721SMatt Gilbride#      https://www.apache.org/licenses/LICENSE-2.0
10*55e87721SMatt Gilbride#
11*55e87721SMatt Gilbride# Unless required by applicable law or agreed to in writing, software
12*55e87721SMatt Gilbride# distributed under the License is distributed on an "AS IS" BASIS,
13*55e87721SMatt Gilbride# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*55e87721SMatt Gilbride# See the License for the specific language governing permissions and
15*55e87721SMatt Gilbride# limitations under the License.
16*55e87721SMatt Gilbride#
17*55e87721SMatt Gilbride
18*55e87721SMatt Gilbride# Current working directory will be <repo-root>/.terraform/
19*55e87721SMatt Gilbridesource ./helpers/common.sh
20*55e87721SMatt Gilbride
21*55e87721SMatt GilbrideMY_SQL_DATABASE=$(getModuleOutput java-bigqueryconnection db_name)
22*55e87721SMatt Gilbrideecho "Setting environment variable MY_SQL_DATABASE=$MY_SQL_DATABASE"
23*55e87721SMatt Gilbrideexport MY_SQL_DATABASE
24*55e87721SMatt Gilbride
25*55e87721SMatt GilbrideMY_SQL_INSTANCE=$(getModuleOutput java-bigqueryconnection db_instance)
26*55e87721SMatt Gilbrideecho "Setting environment variable MY_SQL_INSTANCE=$MY_SQL_INSTANCE"
27*55e87721SMatt Gilbrideexport MY_SQL_INSTANCE
28*55e87721SMatt Gilbride
29*55e87721SMatt Gilbrideecho "Setting environment variable DB_PWD=<sensitive>"
30*55e87721SMatt GilbrideDB_PWD=$(getModuleOutput java-bigqueryconnection db_password)
31*55e87721SMatt Gilbrideexport DB_PWD
32*55e87721SMatt Gilbride
33*55e87721SMatt Gilbrideecho "Setting environment variable DB_USER=default"
34*55e87721SMatt Gilbrideexport DB_USER="default"
35