How to do it...

We'll use a vulnerable app written in Python from https://github.com/mpirnat/lets-be-bad-guys and host it in our flexible App Engine environment. This site is developed for learning the most popular kinds of attacks on websites:

  1. We'll use the Cloud Shell to deploy the application to App Engine. Launch the Cloud Shell, using the Activate Google Cloud Shell button or the following URL: https://console.cloud.google.com/cloudshell.
  2. Clone the repository and navigate to the lets-be-bad-guys folder under Chapter03:
$ git clone https://github.com/legorie/gcpcookbook.git  cd gcpcookbook/Chapter03/lets-be-bad-guys
  1. Have a look at the app.yaml file, which contains the configuration information for the deployment to the flexible environment: ...

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.