Skip to content

Commit 432d2a7

Browse files
committed
updated deploy.sh
1 parent 979acb4 commit 432d2a7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

gcp_cloud_function_proxy/deploy.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ cd "$srcdir"
2121

2222
name="proxy"
2323

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

2832
# https://console.cloud.google.com/marketplace/product/google/vpcaccess.googleapis.com
2933
# for serverless VPC access to resources using their Private IPs

0 commit comments

Comments
 (0)