GCP Services Guide

Core Services by Category

CategoryServiceAWS EquivalentUse Case
ComputeCompute Engine (GCE)EC2IaaS VMs, custom machine types
ContainersGoogle Kubernetes Engine (GKE)EKSManaged Kubernetes, Autopilot mode
ServerlessCloud RunECS Fargate / LambdaContainerized apps, HTTP-driven scale to zero
ServerlessCloud FunctionsLambdaEvent-driven functions
StorageCloud Storage (GCS)S3Object storage, data lake, static hosting
DatabaseCloud SQLRDSManaged MySQL/PostgreSQL/SQL Server
DatabaseCloud SpannerAurora / DynamoDBGlobally distributed, strongly consistent RDBMS
DatabaseFirestoreDynamoDBNoSQL document DB, mobile/web apps
AnalyticsBigQueryRedshift / AthenaServerless data warehouse, petabyte-scale
MessagingPub/SubSNS + SQSAsync messaging, event streaming
NetworkingCloud Load BalancingALB/NLBGlobal anycast HTTP(S)/TCP/UDP LB
SecuritySecret ManagerSecrets ManagerStore API keys, passwords, certificates

gcloud CLI Essentials

# Auth & config gcloud auth login gcloud config set project my-project-id gcloud config set compute/region us-central1 # Cloud Run: deploy container gcloud run deploy my-service \ --image gcr.io/my-project/my-app:latest \ --region us-central1 \ --platform managed \ --allow-unauthenticated \ --memory 512Mi --cpu 1 # GKE: create cluster & connect gcloud container clusters create my-cluster \ --region us-central1 --num-nodes 3 gcloud container clusters get-credentials my-cluster --region us-central1 # Cloud Storage gsutil cp localfile.txt gs://my-bucket/ gsutil ls gs://my-bucket/ gsutil rm gs://my-bucket/file.txt gsutil iam ch allUsers:objectViewer gs://my-public-bucket # Cloud SQL: connect via Cloud SQL Proxy cloud-sql-proxy my-project:us-central1:my-instance & psql "host=127.0.0.1 user=postgres dbname=mydb" # BigQuery bq query --use_legacy_sql=false \ 'SELECT COUNT(*) FROM `my-project.dataset.table`' bq load --source_format=CSV dataset.table gs://bucket/file.csv schema.json