use region other than us-central1 for Google Cloud

2019-06-19 00:34发布

From what I can tell, Google Cloud Functions is only available in us-central1, as the drop-down for selecting a region only allows me to select us-central1, and when I try writing my own deploy script using something different for the region option like us-east4, the deploy fails. Is this the case? Is there some hidden way to enable creating a cloud function in us-east4 or some other region?

update: the linked question clarifies this for Firebase but I would love to see an official answer for Cloud Functions in general. My guess based on what I've found online is that until Cloud Functions is out of beta, it will only be available in us-central1.

2条回答
孤傲高冷的网名
2楼-- · 2019-06-19 01:16

(Updated July 2018) Good news! Cloud Functions is now available in 4 different regions: Iowa (us-central1), South Carolina (us-east1), Tokyo (asia-northeast1), and Belgium (europe-west1).

To specify your region, you can specify --region during deploy, e.g.

$ gcloud functions deploy howdy --trigger-http --region=europe-west1

查看更多
闹够了就滚
3楼-- · 2019-06-19 01:34

To view the full list of regions available for Cloud Functions, visit this link:

https://cloud.google.com/functions/docs/locations

Current available regions (April, 2019) are:

  • us-central1 (Iowa)
  • us-east1 (South Carolina)
  • europe-west1 (Belgium)
  • europe-west2 (London)
  • asia-east2 (Hong Kong)
  • asia-northeast1 (Tokyo)
查看更多
登录 后发表回答