Migrate a project to a different region

118 views
Skip to first unread message

Diego Sucaria

unread,
Aug 2, 2018, 3:32:45 PM8/2/18
to Google App Engine
Hello!

When we started, the south american region was not available. now it is, and we would like to use it and see our app latency reduced from 170ms to 50ms.

I know that it is not possible to move/change an AppEngine app to a different region.

So, the only option is to create a new project, then migrate the app...  but we've encountered some problems:

  • Cloud SQL migration: I can create a new instance export/import databases using the cloud storage bucket within the same project. but how do we achieve this using a different project?
  • Service Accounts migration: we have several remote devices, which uses service accounts to connect to Google PubSub. How can we move the service accounts to the new project? Without needing to update the service account on each device.
Is there an easier way to do this?

How can achieve this, what do you think?

thanks

George (Cloud Platform Support)

unread,
Aug 3, 2018, 1:20:24 PM8/3/18
to Google App Engine
Hello Diego, 

You are right, there is no direct or automated way to move your project from a region to another. You'll have to simply open a new project in the desired region and deploy your app there. This will likely prove in practice less time-consuming than it may appear at first  sight. 

Same applies to Cloud SQL migration: you can create a new instance in the target region and then migrate your data from the old instance to the newly-created one. You may find related information in the "Best Practices for Importing and Exporting Data" online document

Your old-project specific service account may be added to your new project in the desired region:

1) On the "Permissions" page you should click on "Add Members", then paste the name of the service account, and assign it the role you consider appropriate.

2) Now, running gcloud commands with --project set to the new project should be successful.
Reply all
Reply to author
Forward
0 new messages