Skip to main content
Cloudjpoutrin

gcp-cloud

Google Cloud Platform infrastructure patterns and best practices. Use when designing or implementing GCP solutions including Compute Engine, Cloud Functions, Cloud Storage, and BigQuery.

Stars
13
Source
jpoutrin/product-forge
Updated
2026-03-01
Slug
jpoutrin--product-forge--gcp-cloud
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/jpoutrin/product-forge/HEAD/plugins/devops-data/skills/gcp-cloud/SKILL.md -o .claude/skills/gcp-cloud.md

Drops the SKILL.md into .claude/skills/gcp-cloud.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

GCP Cloud Skill

This skill provides GCP architecture patterns and best practices.

Core Services

Service Use Case
Compute Engine Virtual machines
Cloud Functions Serverless functions
Cloud Run Containers serverless
Cloud Storage Object storage
Cloud SQL Managed databases
BigQuery Data warehouse
GKE Kubernetes

Terraform Patterns

# GKE cluster
resource "google_container_cluster" "primary" {
  name     = "my-cluster"
  location = "us-central1"

  remove_default_node_pool = true
  initial_node_count       = 1

  workload_identity_config {
    workload_pool = "${var.project_id}.svc.id.goog"
  }
}

Security Best Practices

  • Use Workload Identity (not service account keys)
  • Enable VPC Service Controls
  • Use Cloud IAM for access management
  • Enable Cloud Audit Logs
  • Use Customer-Managed Encryption Keys
  • Enable Binary Authorization for GKE

BigQuery Patterns

-- Partitioned table for cost optimization
CREATE TABLE mydataset.events
PARTITION BY DATE(event_time)
CLUSTER BY user_id
AS SELECT * FROM staging.events;

Cost Optimization

  • Use Committed Use Discounts
  • Use Preemptible VMs for batch
  • Enable autoscaling
  • Use BigQuery slot reservations
  • Archive to Coldline/Archive storage