Google App Engine - First Project Walkthrough
A complete step-by-step guide to creating and deploying your first application on Google App Engine.
Table of Contents
- Setting Up App Engine
- Creating Your Application
- Configuring Service Account
- Application Creation in Progress
- Getting Started with Deployment
- Installing Google Cloud SDK
- Extracting Cloud SDK
- Running SDK Installation
- SDK Components
- Path Configuration
- Authentication Success
- Cloud Shell Welcome
- Initializing gcloud
- Creating main.py
- Creating requirements.txt
- Creating app.yaml
- Running gcloud init
- Authenticating gcloud
- Setting Project ID
- Project Configuration Confirmed
- Navigating to Project Directory
- Deploying to App Engine
- Accessing the Deployed App
- Application Running
- Viewing Versions
- Application Settings
- Disabling the Application
- Application Disabled
1. App Engine Welcome

What's happening:
- You've navigated to the Google Cloud Console's App Engine Dashboard
- The welcome screen introduces App Engine as a platform to "Build scalable apps in any language on Google's infrastructure"
- The interface shows various sections in the left sidebar: Services, Versions, Instances, Task queues, Cron jobs, Firewall rules, Quotas, Memcache, and Settings
- Google is promoting Cloud Run as a modern alternative with lower minimum billable times and GPU support for AI/ML workloads
Key Point: This is the starting point for creating your first App Engine application.
2. Creating the App Engine Application

What's happening:
- You've clicked to create a new App Engine application
- The configuration wizard shows two main steps: "Configure application" and "Get started"
- Critical Decision: You must select a region for your App Engine application
- Important Warning: "Once selected, the region is permanently tied to the project" - this cannot be changed later!
- You also need to configure Identity and API access by selecting a service account
Action Required: Select your preferred geographic region from the dropdown menu.
3. Service Account Selection

What's happening:
- A modal dialog has appeared to select a service account
- You can see the "App Engine default service account" option
- Options available:
- Use the default App Engine service account
- Create a new service account
- Refresh the list to see other available service accounts
Key Point: Service accounts define the identity and permissions your App Engine application will use when accessing other Google Cloud resources.
4. Application Creation

What's happening:
- The application is being created - you can see "Creating application..." with a loading spinner
- The screen shows a promotion for Cloud Run, mentioning it's "available in all the Google Cloud supported regions"
- The creation process happens in the background and may take a few moments
Status: Wait for the application creation to complete.
5. Deployment Options

What's happening:
Next Step: You need to install the Google Cloud SDK to deploy your application.
6. Cloud SDK Overview

What's happening:
- You've navigated to the Google Cloud SDK page at cloud.google.com
- The page describes Cloud SDK as "Libraries and tools for interacting with Google Cloud products and services"
- Key features listed:
- Client Libraries for Java, C++, Python, Node.js, Ruby, Go, .NET, PHP, Rust, and ABAP
- Google Cloud CLI for scripting and interacting with cloud resources
- Local development emulators for Pub/Sub, Spanner, Bigtable, and Datastore
- A video explaining "What is the Google Cloud SDK?" is available
Action Required: Download and install the Google Cloud CLI for your operating system.
7. Extracting the SDK

What's happening:
Technical Note: The extraction creates the necessary file structure for the Cloud SDK installation.
8. SDK Installation Script

What's happening:
Privacy Note: This is optional and doesn't affect SDK functionality.
9. SDK Components Overview

What's happening:
- The installer displays all available SDK components:
- Not Installed: Various optional tools like
gke-gcloud-auth-plugin, istioctl, kpt, kubectl, kubectl-oidc, pkg
- Installed by default:
- BigQuery Command Line Tool (
bq) - 1.8 MiB
- Cloud Storage Command Line Tool (
gsutil) - 12.4 MiB
- Google Cloud CLI Core Libraries (
core) - 23.2 MiB
- Google Cloud CRC32C Hash Tool (
gcloud-crc32c) - 1.4 MiB
Management Commands:
gcloud components install COMPONENT_ID # Install components
gcloud components remove COMPONENT_ID # Remove components
gcloud components update # Update to latest version
10. Configuring Shell Path

What's happening:
- The installer asks: "Modify profile to update your $PATH and enable shell command completion?"
- User response: "y" (yes)
- The installer prompts: "Enter a path to an rc file to update, or leave blank to use [/Users/muditatrey/.zshrc]:"
- Since the user is on macOS using zsh shell, the default
.zshrc is appropriate
Important: This modification allows you to run gcloud commands from anywhere in your terminal without specifying the full path.
11. Authentication Complete

What's happening:
- Browser window showing: "You are now authenticated with the gcloud CLI!"
- The OAuth authentication flow has completed successfully
- The page provides helpful resources:
- gcloud CLI guide for command-line tools
- Information about accessing services with the gcloud CLI
- Client Libraries documentation for programming language integration
Status: Your local machine is now authorized to interact with your Google Cloud project.
12. Cloud Shell Introduction

What's happening:
- This shows Google Cloud Shell, a browser-based terminal environment
- Welcome message: "Welcome to Cloud Shell! Type 'help' to get started"
- New feature: Gemini CLI is available - type
gemini to try it
- The session is automatically set to project:
peaceful-garden-477817-u9
- Cloud Shell provides a pre-configured environment with gcloud CLI already installed
Note: Cloud Shell is an alternative to local SDK installation, accessible directly from the browser.
13. gcloud Initialization

What's happening:
- The OAuth authorization URL is displayed (long authentication URL)
- User confirmation: "You are signed in as: [muditatreya07@gmail.com]"
- Project selection menu displayed with multiple projects:
- indigo-terra-335116
- jarvis-5b558
- jarvis-82c4d
- optimal-inis-442104-d1
- peaceful-garden-477817-u9 โ Selected (option 5)
- symbolic-app-446214-s5
- Enter a project ID
- Create a new project
- Confirmation: "Your current project has been set to: [peaceful-garden-477817-u9]"
- Note about default zone/region settings and Compute Engine API
Action Completed: The gcloud CLI is now configured to use the correct project.
14. Creating the Application Code

What's happening:
Purpose: This is your actual application code that will run on App Engine.
15. Defining Dependencies

What's happening:
- Creating
requirements.txt using nano
- Contents:
Flask==3.0.0
gunicorn
- Flask==3.0.0: The web framework for your Python application
- gunicorn: A Python WSGI HTTP Server that will serve your Flask application in production
Purpose: This file tells App Engine which Python packages to install when deploying your application.
16. App Engine Configuration

What's happening: