Skip to content

Commit 83ed9e8

Browse files
committed
updated deploy.sh
1 parent 0440b5a commit 83ed9e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcp_cloud_function_sql_export/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2020
cd "$srcdir"
2121

2222
project="$(gcloud config list --format="value(core.project)")"
23-
region="europe-west3" # not available in all regions yet
23+
region="$(gcloud config list --format="value(compute.region)")"
24+
region="${region:-${GOOGLE_REGION:-europe-west3}}" # not available in all regions yet
2425

2526
name="cloud-sql-backups"
2627
topic="cloud-sql-backups"

0 commit comments

Comments
 (0)