Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Gcp Cloud Functions

  • 424 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

gcp-cloud-functions is a prompt skill from aj-geddes/useful-ai-prompts that scaffolds, configures, and deploys HTTP or event-driven handlers on Google Cloud Functions with correct IAM, triggers, environment variables, an

About

gcp-cloud-functions is a deployment-oriented prompt skill in aj-geddes/useful-ai-prompts for backend developers shipping serverless workloads on Google Cloud. The skill walks through scaffolding Cloud Functions handlers, wiring HTTP or event-driven triggers, setting IAM permissions, configuring environment variables, and packaging for Node.js or Python runtimes. Developers reach for gcp-cloud-functions when moving a handler from local code to a production GCP deployment and need correct trigger bindings, service account roles, and deployment commands without re-reading Cloud Functions documentation.

  • Generates function handlers with trigger and runtime choices
  • Covers IAM roles, secrets, and environment configuration
  • Advises on cold starts, concurrency, and timeout limits
  • Maps Eventarc, Pub/Sub, and HTTP ingress patterns
  • Includes deploy commands and local emulation tips

Gcp Cloud Functions by the numbers

  • 424 all-time installs (skills.sh)
  • Ranked #382 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill gcp-cloud-functions

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs424
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you deploy Google Cloud Functions with IAM?

Scaffold, configure, and deploy HTTP or event-driven handlers on Google Cloud Functions with correct IAM, triggers, env vars, and packaging for Node or Python runtimes.

Who is it for?

Backend developers shipping serverless HTTP or event handlers to Google Cloud Functions for the first time in a repo.

Skip if: Teams standardized on AWS Lambda or Cloud Run who will not deploy to Google Cloud Functions.

When should I use this skill?

A developer needs to scaffold, configure, or deploy a handler on Google Cloud Functions with triggers and IAM.

What you get

Deployed GCP Cloud Function with IAM bindings, trigger configuration, env vars, and Node or Python runtime package.

  • deployed Cloud Function
  • IAM configuration
  • trigger binding

Files

SKILL.mdMarkdownGitHub ↗

GCP Cloud Functions

Table of Contents

Overview

Google Cloud Functions enables event-driven serverless computing on Google Cloud Platform. Build functions with automatic scaling, integrated security, and seamless integration with Google Cloud services for rapid development.

When to Use

  • HTTP APIs and webhooks
  • Pub/Sub message processing
  • Storage bucket events
  • Firestore database triggers
  • Cloud Scheduler jobs
  • Real-time data processing
  • Image and video processing
  • Data pipeline orchestration

Quick Start

Minimal working example:

# Install Google Cloud SDK
curl https://sdk.cloud.google.com | bash
exec -l $SHELL

# Initialize and authenticate
gcloud init
gcloud auth application-default login

# Set project
gcloud config set project MY_PROJECT_ID

# Create service account
gcloud iam service-accounts create cloud-function-sa \
  --display-name "Cloud Function Service Account"

# Grant permissions
gcloud projects add-iam-policy-binding MY_PROJECT_ID \
  --member="serviceAccount:cloud-function-sa@MY_PROJECT_ID.iam.gserviceaccount.com" \
  --role="roles/cloudfunctions.invoker"

# Deploy HTTP function
gcloud functions deploy my-http-function \
  --gen2 \
  --runtime nodejs18 \
  --region us-central1 \
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Cloud Function Creation with gcloud CLICloud Function Creation with gcloud CLI
Cloud Functions Implementation (Node.js)Cloud Functions Implementation (Node.js)
Terraform Cloud Functions ConfigurationTerraform Cloud Functions Configuration

Best Practices

✅ DO

  • Use service accounts with least privilege
  • Store secrets in Secret Manager
  • Implement proper error handling
  • Use environment variables for configuration
  • Monitor with Cloud Logging and Cloud Monitoring
  • Set appropriate memory and timeout
  • Use event filters to reduce invocations
  • Implement idempotent functions

❌ DON'T

  • Store secrets in code
  • Use default service account
  • Create long-running functions
  • Ignore error handling
  • Deploy without testing
  • Use unauthenticated access for sensitive functions

Related skills

FAQ

Which runtimes does gcp-cloud-functions support?

gcp-cloud-functions covers Node and Python runtimes for Google Cloud Functions. The skill guides packaging, trigger configuration, IAM setup, and deployment for HTTP or event-driven handlers on GCP.

What triggers can gcp-cloud-functions configure?

gcp-cloud-functions scaffolds HTTP endpoints and event-driven handlers on Google Cloud Functions. The skill configures the correct trigger bindings, IAM permissions, and environment variables for each trigger type.

Cloud & Infrastructurebackenddevopsintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.