Back to Agent Skills
DevOps & Infrastructure
Google Cloud Run
Deploy containerized applications to Google Cloud Run with auto-scaling, custom domains, and traffic splitting for canary deployments.
Claude Code Codex Cursor Gemini CLI
Overview
Google Cloud Run is a fully managed serverless platform that runs stateless containers. It automatically scales from zero to thousands of instances based on incoming requests, and you only pay for the compute time your code actually uses. AI agents can generate Dockerfiles optimized for Cloud Run, configure services with proper concurrency settings, and set up traffic splitting for gradual rollouts.
AI coding agents are effective with Cloud Run because the deployment workflow is straightforward: build a container, push it to Artifact Registry, and deploy with gcloud. Your agent can generate multi-stage Dockerfiles that produce minimal images, configure service accounts with least-privilege IAM roles, set up Cloud SQL connections via the built-in proxy, and implement custom domains with managed SSL certificates.
Cloud Run excels for web APIs, webhook handlers, and event-driven processing. Your AI agent can set up Pub/Sub push subscriptions, Cloud Scheduler triggers for periodic tasks, and Eventarc integrations for event-driven architectures. The agent can also help optimize cold start times by recommending startup CPU boost, minimum instances, and container image optimization techniques.
AI coding agents are effective with Cloud Run because the deployment workflow is straightforward: build a container, push it to Artifact Registry, and deploy with gcloud. Your agent can generate multi-stage Dockerfiles that produce minimal images, configure service accounts with least-privilege IAM roles, set up Cloud SQL connections via the built-in proxy, and implement custom domains with managed SSL certificates.
Cloud Run excels for web APIs, webhook handlers, and event-driven processing. Your AI agent can set up Pub/Sub push subscriptions, Cloud Scheduler triggers for periodic tasks, and Eventarc integrations for event-driven architectures. The agent can also help optimize cold start times by recommending startup CPU boost, minimum instances, and container image optimization techniques.
Who Is This For?
- Developers deploying containerized APIs with automatic scaling to zero
- Teams implementing canary deployments with Cloud Run traffic splitting
- DevOps engineers connecting Cloud Run services to Cloud SQL databases
- Organizations building event-driven architectures with Pub/Sub and Cloud Run
Installation
Setup for Claude Code
Install gcloud CLI: brew install google-cloud-sdk
gcloud auth login && gcloud config set project YOUR_PROJECT
Claude Code runs gcloud run commands directly Configuration
# Build and deploy to Cloud Run
gcloud builds submit --tag gcr.io/PROJECT_ID/my-app
gcloud run deploy my-app \
--image gcr.io/PROJECT_ID/my-app \
--platform managed \
--region us-central1 \
--allow-unauthenticated \
--set-env-vars NODE_ENV=production Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Skills
DevOps & Infrastructure
Terraform MCP Server
Plan, apply, and manage infrastructure as code directly from your AI agent using the Terraform MCP server integration.
Claude Code Cursor
DevOps & Infrastructure GitHub Actions Workflows
Create, debug, and optimize CI/CD pipelines with GitHub Actions. AI agents can diagnose failing workflows and suggest fixes.
Claude Code Codex Copilot
DevOps & Infrastructure Kubernetes Deployment
Generate and manage Kubernetes manifests, troubleshoot pod issues, and orchestrate container deployments with AI assistance.
Claude Code Codex Cursor