GCP Account Setup
Create your Google Cloud Platform account, set up billing, enable APIs, and navigate the Cloud Console.
What you'll accomplish
A configured GCP account ready for deployments with billing alerts
Prerequisites
- Google account (Gmail)
- Credit card (for verification, free tier available)
Before You Start: What Are You Deploying?
This track teaches GCP deployment mechanics. Before diving in, consider what you're deploying:
Deploying a frontend/static site? Simpler platforms like Vercel may be all you need.
Deploying a complete SaaS product? You'll also need:
- User authentication and sessions
- Subscription billing (Stripe integration)
- Transactional email and notifications
- Multi-tenant data architecture
Your options for the backend:
- Build it yourself — this track + our SaaS Starter template
- Use a backend platform — services like StackForDevs provide auth, billing, and notifications as APIs, so you only deploy your frontend
This track focuses on deployment infrastructure. Make sure you know what you're deploying before proceeding.
What is Google Cloud Platform?
Google Cloud Platform (GCP) is Google's cloud computing service. It offers:
- Cloud Run - Serverless containers (our recommended path)
- Compute Engine - Virtual machines
- Cloud Functions - Serverless functions
- Cloud Storage - File/object storage
- Cloud SQL - Managed databases
Your Application
↓
Google Cloud Platform
↓
Google's Global Infrastructure (200+ countries)
Why Choose GCP?
| Strength | Description |
|---|---|
| Generous free tier | $300 credit + always-free resources |
| Cloud Run | Best serverless container platform |
| Global network | Google's private fiber network |
| BigQuery | Powerful data analytics |
| AI/ML services | Vertex AI, TensorFlow |
GCP vs Other Clouds
| Feature | GCP | AWS | Azure |
|---|---|---|---|
| Free tier | $300 + always-free | 12 months | $200 + 12 months |
| Container focus | Cloud Run (excellent) | ECS/Fargate | Container Apps |
| Learning curve | Moderate | Steep | Moderate |
| Pricing model | Per-second | Per-hour | Per-minute |
Step 1: Create Your Google Cloud Account
1.1 Go to Google Cloud
Visit cloud.google.com and click Get started for free.
1.2 Sign In with Google
Use an existing Google account or create one. This becomes your GCP identity.
Note
For business use, consider creating a dedicated Google account rather than using your personal Gmail.
1.3 Agree to Terms
Read and accept the Google Cloud Terms of Service.
1.4 Set Up Billing
Enter your billing information:
- Select your country
- Choose account type (Individual or Business)
- Enter payment method (credit/debit card)
Note
You won't be charged until you exceed the free tier. Google requires a card to verify you're human and prevent abuse.
1.5 Receive Free Credits
New accounts receive:
- $300 free credit valid for 90 days
- Always-free tier resources (forever)
Step 2: Navigate the Cloud Console
2.1 The Console Dashboard
After setup, you'll land at console.cloud.google.com.
Key areas:
┌─────────────────────────────────────────────────────────┐
│ ☰ Navigation │ Project Selector │ Search │ Shell │
├─────────────────────────────────────────────────────────┤
│ │
│ Dashboard │
│ ├── Project Info │
│ ├── Resources │
│ ├── Billing │
│ └── API Activity │
│ │
└─────────────────────────────────────────────────────────┘
2.2 Key Console Sections
| Section | What It's For |
|---|---|
| Dashboard | Overview of your project |
| Compute Engine | Virtual machines |
| Cloud Run | Serverless containers |
| Cloud Storage | File storage |
| IAM & Admin | Users and permissions |
| Billing | Costs and budgets |
| APIs & Services | Enable/manage APIs |
2.3 The Hamburger Menu
Click ☰ (top-left) to access all GCP services, organized by category:
- Compute
- Storage
- Databases
- Networking
- Operations
- Tools
Step 3: Create Your First Project
GCP organizes resources into Projects. Each project has its own:
- Billing account
- APIs enabled
- IAM permissions
- Resources (VMs, containers, databases)
3.1 Create a Project
- Click the project dropdown (top bar)
- Click New Project
- Enter:
- Project name:
my-app-production(human-readable) - Project ID: Auto-generated or custom (must be globally unique)
- Organization: Your organization or "No organization"
- Project name:
- Click Create
Note
Project IDs cannot be changed after creation. Choose wisely - you'll use this ID in commands and URLs.
3.2 Project Naming Best Practices
Good project IDs:
- mycompany-webapp-prod
- myapp-staging
- personal-blog-2024
Bad project IDs:
- test (too generic, likely taken)
- my-project (not descriptive)
- asdf123 (meaningless)
Step 4: Set Up Billing Alerts
Avoid surprise charges by setting budget alerts.
4.1 Create a Budget
- Go to Billing → Budgets & alerts
- Click Create Budget
- Configure:
- Name:
Monthly Budget - Projects: Select your project
- Amount: Set your budget (e.g., $25)
- Name:
- Set alert thresholds:
- 50% - Early warning
- 90% - Approaching limit
- 100% - At budget
4.2 Alert Actions
Configure what happens at each threshold:
- Email notifications (default)
- Pub/Sub notifications (for automation)
- Connect to Cloud Functions (to auto-disable services)
4.3 View Current Spending
- Go to Billing → Reports
- Filter by project, service, or date range
- See cost breakdown by service
Step 5: Enable Required APIs
GCP services must be explicitly enabled. Each project starts with most APIs disabled.
5.1 Enable Cloud Run API
- Go to APIs & Services → Library
- Search for "Cloud Run"
- Click Cloud Run Admin API
- Click Enable
5.2 Enable Other Common APIs
For a typical deployment, enable:
| API | Purpose |
|---|---|
| Cloud Run Admin API | Deploy containers |
| Container Registry API | Store Docker images |
| Artifact Registry API | Modern image storage |
| Cloud Build API | Build containers |
| Compute Engine API | VMs (if needed) |
| Cloud DNS API | Domain management |
5.3 Bulk Enable via CLI
bashgcloud services enable \ run.googleapis.com \ artifactregistry.googleapis.com \ cloudbuild.googleapis.com \ compute.googleapis.com \ dns.googleapis.com
Step 6: Understand IAM Basics
IAM (Identity and Access Management) controls who can do what.
6.1 Key Concepts
| Concept | Description |
|---|---|
| Principal | Who (user, service account, group) |
| Role | What they can do (set of permissions) |
| Resource | What they can do it to (project, VM, bucket) |
6.2 Common Roles
| Role | Access Level |
|---|---|
Owner | Full control, including billing |
Editor | Create/modify/delete resources |
Viewer | Read-only access |
Cloud Run Admin | Manage Cloud Run services |
Storage Admin | Manage Cloud Storage |
6.3 Service Accounts
For applications (not humans), create service accounts:
- Go to IAM & Admin → Service Accounts
- Click Create Service Account
- Enter name and description
- Grant necessary roles
- Download JSON key (if needed for external access)
Note
Keep service account keys secure! Never commit them to Git. Use environment variables or secret managers.
Step 7: Install Cloud Shell (In-Browser Terminal)
GCP provides a free terminal in your browser.
7.1 Launch Cloud Shell
- Click the Cloud Shell icon (top-right, looks like
>_) - Wait for the VM to start
- You now have a terminal with
gcloudpre-installed
7.2 Cloud Shell Features
- Free: 5GB home directory, free VM
- Pre-installed tools: gcloud, docker, kubectl, terraform
- Web preview: Test web apps on ports 8080-8084
- File editor: Built-in code editor
7.3 Limitations
- Disconnects after 20 minutes of inactivity
- VM resets weekly (but home directory persists)
- Not for production workloads
Step 8: Verify Your Setup
Check Project
bash# In Cloud Shell or local terminal with gcloud gcloud config get-value project # Should output: your-project-id
Check Enabled APIs
bashgcloud services list --enabled # Should show Cloud Run, Artifact Registry, etc.
Check Billing
- Go to Billing → Overview
- Verify your payment method is active
- Check remaining free credits
Free Tier Highlights
Always-free resources (after $300 credit expires):
| Service | Free Amount |
|---|---|
| Cloud Run | 2M requests/month, 360K GB-seconds |
| Cloud Functions | 2M invocations/month |
| Cloud Storage | 5GB Standard storage |
| Artifact Registry | 500MB storage |
| Cloud Build | 120 build-minutes/day |
| Compute Engine | 1 e2-micro VM (US regions) |
| BigQuery | 1TB queries/month |
Note
Cloud Run's free tier is generous - many small to medium apps run entirely free!
Common Setup Issues
"Billing account not found"
- Go to Billing
- Ensure a billing account is linked to your project
- Check payment method is valid
"API not enabled"
bash# Enable the specific API gcloud services enable [API_NAME] # Example gcloud services enable run.googleapis.com
"Permission denied"
- Check you're in the right project
- Verify your role includes necessary permissions
- Ask project owner to grant appropriate role
Cost Management Tips
- Set budgets - Always have alerts configured
- Use free tier - Stay within limits when possible
- Delete unused resources - VMs, disks, IP addresses cost money
- Use Cloud Run - Pay only for actual usage
- Check reports weekly - Catch unexpected charges early
Note
Checkpoint: Verify you can access the Cloud Console, your project is created, billing is configured, and you can open Cloud Shell.