Verify/change application region at Google App Engine

fbysaputri picture fbysaputri · Sep 10, 2014 · Viewed 20.5k times · Source

I'm creating a GAE application.

When I set my GAE PHP application as an authorized application to access my Cloud SQL instance, I get the following warning:

App Engine regions must be the same as Cloud SQL instance regions!

How can I verify or change the region of my GAE application?

Thx

Answer

Vishakha picture Vishakha · Dec 20, 2017

You can use gcloud app describe --project <projectId> command to get the location. You cannot change an app's region after you set it. Refer here.

For example:

$ gcloud app describe --project myapp-1337
authDomain: gmail.com
codeBucket: staging.myapp-1337.appspot.com
defaultBucket: myapp-1337.appspot.com
defaultHostname: myapp-1337.appspot.com
featureSettings:
  splitHealthChecks: true
gcrDomain: us.gcr.io
id: myapp-1337
locationId: us-central
name: apps/myapp-1337
servingStatus: SERVING