agentleFS
Google CloudKnown publisherGoogleCloudPlatform/devrel-demos/ai-ml/dev-signal/.agent/skills/cloud-run-agent-architect/SKILL.md

cloud-run-agent-architect

Skill397 starsChanged 12 days agoApache-2.0View on GitHub

Automates the generation of Terraform files for a secure Cloud Run deployment of an AI agent.

  • Reads credentials

The file

Files
SKILL.md

cloud-run-agent-architect

This skill helps you provision secure, reproducible infrastructure on Google Cloud for your AI agents using Terraform. It follows the "least-privilege" principle and handles Secret Manager integration.

Usage

Ask Antigravity to:

  • "Generate Terraform files for my Cloud Run agent"
  • "Create a secure service account for my agent"
  • "Add my Reddit and Google Docs secrets to Terraform"

Infrastructure Pattern

The generated infrastructure includes:

  1. Cloud Run Service: Configured with automated secret injection and VPC egress if needed.
  2. Dedicated Service Account: Granted specific roles like roles/aiplatform.user and roles/secretmanager.secretAccessor.
  3. Secret Manager: Provisioned for sensitive API keys (e.g., REDDIT_CLIENT_ID, DK_API_KEY).
  4. Artifact Registry: A private repository to host the agent's container images.

Terraform Template

Refer to the included resources/main.tf and resources/variables.tf for the standard implementation.

Key IAM Roles

  • roles/aiplatform.user: To call Vertex AI models.
  • roles/logging.logWriter: To export agent traces.
  • roles/storage.objectAdmin: If the agent saves artifacts (e.g., images to GCS).
  • roles/secretmanager.secretAccessor: To read secrets at runtime.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.