如何更改 Google Cloud Platform Project 的区域?

How to change Google Cloud Platform Project's region?

我正在尝试在我的一个项目中部署 Google Cloud Datalab,但我收到一条错误消息,指出它无法部署在美国以外的项目中。创建项目时,我指定了欧洲数据中心。

我无法创建新项目,因为这个项目正在从促销试用中受益。

我曾尝试在计算中设置此元数据键值对,但没有帮助:google-compute-default-region: us-east1

更详细的错误消息(稍微解释一下):

The selected project is not enabled for App Engine, or it's location is unsupported.
Google Cloud Datalab uses Google App Engine and Managed VMs Beta which is U.S. only.

如何更改项目的位置?

我不认为项目的位置在创建后可以更改。您需要在新位置创建新项目。

你可以试试运行 gcloud init, pick choice

[1] Re-initialize this configuration [default] with new settings

然后它最终会要求您选择您所在的区域。