Moving a Python app from AWS to GCP

  • Deployments would be made in a GKE cluster instead of generating automation to use GCP instances
  • Adopt the local build/remote registry workflow for Docker and GKE. The app was packaged using Docker already so it would be a small Makefile change to add the proper workflow
  • Data needed to kickstart the application lived on S3 and we would use GCP Storage to hold it in the same way.
  • All communication to APIs that would have granted access inside a AWS VPC would have to communicate through public APIs using SSL and the proper authentication tokens.
  • Create your storage and bucket in "Interoperability mode"
  • Get the credentials in GCP panel or gcloud
  • Change your application to receive the issued credentials, which should be stored as GKE secrets
  • Use the following code snippet to guide you through the minimal code changes:

--

--

[To Pedro] Just listen to your heart. That's what I do - Napoleon Dynamite | https://github.com/gleicon http://br.linkedin.com/in/gleicon

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gleicon Moraes

Gleicon Moraes

[To Pedro] Just listen to your heart. That's what I do - Napoleon Dynamite | https://github.com/gleicon http://br.linkedin.com/in/gleicon