gcp-cloud-functions

Build serverless applications with Cloud Functions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gcp-cloud-functions" with this command: npx skills add bagelhole/devops-security-agent-skills/bagelhole-devops-security-agent-skills-gcp-cloud-functions

GCP Cloud Functions

Build serverless applications with Cloud Functions.

Deploy Function

Deploy HTTP function

gcloud functions deploy hello
--runtime=python311
--trigger-http
--allow-unauthenticated
--entry-point=hello_http

Deploy Pub/Sub triggered function

gcloud functions deploy process-message
--runtime=python311
--trigger-topic=my-topic
--entry-point=process

Function Code

main.py

def hello_http(request): return 'Hello, World!'

def process(event, context): import base64 data = base64.b64decode(event['data']).decode('utf-8') print(f"Received: {data}")

Best Practices

  • Use 2nd gen functions for better performance

  • Implement proper error handling

  • Use environment variables for configuration

  • Monitor with Cloud Logging

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

linux-administration

No summary provided by upstream source.

Repository SourceNeeds Review
Security

sops-encryption

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-hardening

No summary provided by upstream source.

Repository SourceNeeds Review
Security

windows-server

No summary provided by upstream source.

Repository SourceNeeds Review