Skip to content

Commit 5afaf5f

Browse files
committed
updated deploy.sh
1 parent 432d2a7 commit 5afaf5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gcp_cloud_function_sql_export/deploy.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ cd "$srcdir"
2222
# needed to define the $service_account further down
2323
project="${CLOUDSDK_CORE_PROJECT:-$(gcloud config list --format="value(core.project)")}"
2424

25+
# Cloud Functions not available in all regions yet:
26+
#
27+
# https://cloud.google.com/functions/docs/locations
28+
#
2529
# gcloud functions deploy doesn't seem to infer CLOUDSDK_COMPUTE_REGION from environment
2630
region="$(gcloud config list --format="value(compute.region)" 2>&1 || :)"
27-
region="${CLOUDSDK_COMPUTE_REGION:-${region:-europe-west1}}" # not available in all regions yet
31+
region="${CLOUDSDK_COMPUTE_REGION:-${region:-europe-west1}}"
2832

2933
name="cloud-sql-backups"
3034
topic="cloud-sql-backups"

0 commit comments

Comments
 (0)