GcpIntermediate

Getting Started with Google Cloud Platform: A Beginner's Guide

9 min read

TL;DR

Master the fundamentals of Google Cloud Platform (GCP) with this comprehensive guide. Learn about core services, networking, security, and best practices for building scalable applications on GCP.

Getting Started with Google Cloud Platform: A Beginner's Guide

Executive Summary

Google Cloud Platform organises everything around a resource hierarchy — organisation, folders, projects, resources — and a project is where billing, IAM, and quotas attach. This guide takes you from an empty account to working infrastructure: creating projects, choosing between the compute options, setting up a VPC, storing data, and putting identity, monitoring, and budget guardrails in place from day one. The emphasis is on the decisions that are painful to reverse later: project structure, network layout, and how identities are granted access. After reading it, you should be able to stand up a small production-shaped environment, not just a tutorial VM.

Why This Matters

Beginners usually meet GCP as a console full of services and start clicking. The bill and the security model both punish that approach: resources created in the wrong project inherit the wrong IAM and the wrong budget, a default network with broad firewall rules becomes the thing production quietly depends on, and a downloaded service account key ends up in a laptop backup. None of this is hard to avoid — it is hard to retrofit. Thirty minutes spent on hierarchy, networking, and identity before the first real workload saves weeks of migration later, and it is much easier to learn the platform on a structure you will not have to throw away.

Core Concepts

The Resource Hierarchy and Projects

Everything in GCP lives in a project, projects live in folders, and folders live in an organisation. IAM policies and organisation policies inherit down this tree, which is why structure is a security decision, not tidiness. A common pattern is one project per application per environment (for example shop-prod, shop-dev), because project boundaries give you separate billing line items, quota pools, and blast-radius control for free.

ConceptDescriptionExample
ProjectsBase-level organisational unit that holds resourcesmy-web-app
RegionsGeographic locations where resources can be hostedus-central1
ZonesIsolated locations within regionsus-central1-a
ServicesIndividual GCP productsCompute Engine, Cloud Storage

# Install Google Cloud SDK (if not already installed)
# For macOS:
brew install google-cloud-sdk

# Initialize gcloud and set project
gcloud init

# Create a new project
gcloud projects create my-project-id --name="My Project Name"

# Set the active project
gcloud config set project my-project-id

# List organizations
gcloud organizations list

# List folders
gcloud resource-manager folders list

# List projects
gcloud projects list

Enable APIs per project as you adopt services, and do everything twice — once in the console to learn it, once in gcloud or Terraform so it is repeatable.

Choosing Compute

GCP's compute options form a ladder of decreasing control and decreasing operational work:

ServiceUse caseBenefits
Compute EngineVirtual machines for maximum controlFlexible, full control over infrastructure
Google Kubernetes EngineContainer orchestrationManaged Kubernetes service
Cloud RunServerless containersAuto-scaling, pay-per-use
Cloud FunctionsEvent-driven functionsServerless, minimal management

Start as high on the ladder as your workload allows. A first VM is still the right way to learn the platform's networking and IAM, and creating one is a single command:

# Create a VM instance
gcloud compute instances create my-vm \
  --zone=us-central1-a \
  --machine-type=e2-medium \
  --image-family=debian-11 \
  --image-project=debian-cloud

# SSH into the instance
gcloud compute ssh my-vm --zone=us-central1-a

Note that gcloud compute ssh tunnels through IAP with OS Login identities when configured — you do not need to open port 22 to the internet or manage key files.

Networking: Your Own VPC

Every project starts with a default auto-mode VPC. For anything beyond a tutorial, create a custom-mode VPC where you choose the subnets and IP ranges:

# Create a VPC network
gcloud compute networks create my-vpc \
  --subnet-mode=custom

# Create a subnet
gcloud compute networks subnets create my-subnet \
  --network=my-vpc \
  --region=us-central1 \
  --range=10.0.0.0/24

# Create a firewall rule
gcloud compute firewall-rules create allow-http \
  --network=my-vpc \
  --allow=tcp:80 \
  --source-ranges=0.0.0.0/0

Two facts surprise newcomers. GCP VPCs are global — one network can hold subnets in many regions — and firewall rules are stateful and applied by target tag or service account, with an implied deny on ingress. Plan IP ranges as if you will one day peer with another network or connect an office, because overlapping ranges discovered then are miserable to fix.

Storage and Data

Match the store to the access pattern: Cloud Storage for objects and files, Cloud SQL for managed relational data, Firestore for documents and user-facing application data, Bigtable for very large-scale wide-column workloads. Object storage is the usual first step:

# Create a bucket
gsutil mb gs://my-unique-bucket-name

# Upload a file
gsutil cp myfile.txt gs://my-unique-bucket-name/

Bucket names are globally unique, uniform bucket-level access is the default permission model, and public access should be a deliberate exception — most buckets should stay private, with access granted through IAM to specific identities.

Identity: IAM and Service Accounts

IAM decides who can do what: a member (user, group, or service account) is granted a role (a bundle of permissions) on a resource, and grants inherit down the hierarchy. Grant roles to Google Groups rather than individuals where you can, use predefined roles before writing custom ones, and follow least privilege from the start — it is far easier to add a permission during a debugging session than to discover an over-broad one during an audit. Workloads authenticate as service accounts:

# Create a service account
gcloud iam service-accounts create my-service-account \
  --display-name="My Service Account"

Attach the service account to the VM or service that needs it and grant the account roles; avoid downloading service account keys, which are long-lived credentials that leak. Where a key is genuinely unavoidable, store it in Secret Manager, never in source control.

Monitoring, Logging, and Budgets

Cloud Monitoring and Cloud Logging are on by default for most services; the beginner's job is to make them useful — a dashboard for the services you run, an alert on the error rate you care about, and log retention matched to need. Enable the APIs and verify collection early:

# Enable monitoring API
gcloud services enable monitoring.googleapis.com

# Create an uptime check
gcloud monitoring uptime-check-configs create http-check \
  --display-name="HTTP Check" \
  --http-check-path="/" \
  --hostname="example.com"

Finally, set a budget before you need one. Budgets notify at thresholds and are the difference between learning about a runaway workload from an alert and learning about it from the invoice:

# Create a budget
gcloud billing budgets create \
  --billing-account=BILLING_ACCOUNT_ID \
  --display-name="Monthly Budget" \
  --budget-amount=1000USD \
  --threshold-rules=percent=90

Decision Framework

SituationRecommendation
First learning environmentOne project, custom VPC, a single small VM, budget alert set
New application, production intentSeparate projects per environment from the start
Stateless web serviceCloud Run before Compute Engine; VMs only if the workload demands them
Team access managementGrant roles to Google Groups at the folder or project level
Workload identityAttached service accounts; downloaded keys only as a last resort
Data storageCloud Storage for objects, Cloud SQL for relational, Firestore for documents

Implementation Checklist

  • [ ] Organisation, folder, and project structure decided before the first workload lands
  • [ ] Billing account linked, budget created, and alerts routed to a monitored address
  • [ ] Custom-mode VPC with planned IP ranges; default network not used for production
  • [ ] IAM granted by group and role, least privilege, no basic roles (Owner/Editor) for daily work
  • [ ] Service accounts created per workload; no downloaded keys in code or on laptops
  • [ ] Labels applied to resources for ownership and cost tracking
  • [ ] Monitoring dashboard and at least one alert in place; uptime check on anything user-facing
  • [ ] APIs enabled deliberately per project, and setup captured in gcloud commands or Terraform
  • Trade-offs

    Project-per-environment structure costs a little convenience — more projects to click between, IAM to grant in several places — and buys isolation that is nearly impossible to retrofit. Custom VPCs require you to plan addressing up front where the default network asks nothing of you. Least-privilege IAM generates friction during development, in exchange for a much smaller blast radius when a credential leaks. And every managed service you choose to avoid operational work narrows your control; the ladder of compute options is a set of trades, not a ranking.

    When Not to Use

  • Do not start with GKE for a first workload unless Kubernetes is itself the goal — its learning curve will crowd out learning the platform.
  • Do not use the default VPC or project-wide basic roles for anything you intend to keep; both are tutorial conveniences.
  • Do not download service account keys as your default integration pattern; attached identities and workload identity federation cover nearly every case.
  • Do not reach for Compute Engine when Cloud Run or Cloud Functions fit the workload — you would be volunteering for patching and scaling work the platform will do for free.
  • Conclusion

    Getting started with GCP well is mostly about order of operations: hierarchy first, then billing and budgets, a planned network, disciplined identity, and only then workloads. The services themselves are learnable one at a time, on demand. Build the skeleton correctly and each new service you adopt lands in a structure that is already secure, observable, and cost-aware.

    Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.