Deploy An Application To App Engine Using Five-Finger Steps

Samuel Arogbonlo
AWS Tip
Published in
4 min readApr 1, 2021

--

In using the Google Cloud Platform, it is all about deploying applications and migrating products data to the cloud. This article addresses how to deploy a simple Hello World Python application to the cloud. The major steps used in this process is shown below:

  • Create a new project: The project is created by navigating to the top bar after logging in to the platform. If you are a new user, Google has provided $300 for starting offer so as to get used to the tools on the platform.
  • Activate google cloud shell: The cloud shell is where the scripting and operations take place and it can be switched on by selecting the icon at the top of the screen as well. To check the list of projects, use this command below
gcloud projects list 
  • Enable app engine admin API: Navigate to the menu on Dashboard then select APIs and Services. After that, search “App Engine” and enable. The app engine helps to build apps; it is a serverless solution that takes care of the backend compute and gives the URL of the app and you do not care about many resources. Finally, you should navigate to the project from the cloud shell

Finally, voila, you are here, welcome to the app engine domain.

  • Create an app engine: By using
gcloud app create

Further, you have to then select regions as required and finally, you can check the app engine to check the status of the created application. The process on the command line space is shown:

Lastly, the indication of the App Engine is thus:

  • Deploy application: Here we should first clone a GitHub repo here then do some authentication required. In order to check the application, you use
cat app.yaml 

The response is “runtime:python37” then further you could check the main python file by running this command

cat main.py

and the details of the application shows up. Look up some screenshots below

  • Deploy: This is the last step done by first running this command
gcloud app deploy app.yaml

Following this command, a response of Y/N shows up while the user types “Y” then deploying continues. As soon as the process has been done, the application can be viewed via the URL and the deploying could take a minimum of 7 minutes and more depending on the intensity of the application.

After the application has been deployed, it could be monitored and maintained but you could delete the application from the app engine homepage so as to save unnecessary cost on the platform.

Now, for the record, this content is open to all kinds of people in the community. If you have questions, comments and contributions, shoot her or reach out to me on Twitter and Github.

Thanks for reading ❤️

Please leave a comment if you have any thoughts about the topic — I am open to learning and knowledge explorations.

I can imagine how helpful this post has been, do leave a clap 👏 below a few times to show your support for the author!

--

--

A writer for Cloud and DevOps with a sprinkle of other interesting software concepts.