Index of every page on this site: llms.txt
All skills
Run it yourself

Execute use when provisioning Vertex AI ADK infrastructure with Terraform. Trigger with phrases like "deploy ADK terraform", "agent engine infrastructure", "provision ADK agent", "vertex AI agent terraform", or "code execution sandbox terraform". Provisions Agent Engine runtime, 14-day code execution sandbox, Memory Bank, VPC Service Controls, IAM roles, and secure multi-agent infrastructure.

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/adk-infra-expert

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesimplementation.md

≈883 tokens on demand. Your agent reads this file only when SKILL.md points to it.

ADK Terraform - Implementation Details

Configuration

Backend Setup

terraform {
  required_version = ">= 1.0"

  backend "gcs" {
    bucket = "my-project-tf-state"
    prefix = "adk-infrastructure"
  }

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = ">= 5.0"
    }
    google-beta = {
      source  = "hashicorp/google-beta"
      version = ">= 5.0"
    }
  }
}

Provider Configuration

provider "google" {
  project = var.project_id
  region  = var.region
}

provider "google-beta" {
  project = var.project_id
  region  = var.region
}

Module Structure

modules/
├── agent-engine/       # Agent Engine runtime provisioning
│   ├── main.tf
│   ├── variables.tf
│   └── outputs.tf
├── iam/                # Service accounts and role bindings
│   ├── main.tf
│   ├── variables.tf
│   └── outputs.tf
├── networking/         # VPC, PSC subnets, firewall rules
│   ├── main.tf
│   ├── variables.tf
│   └── outputs.tf
└── vpc-service-controls/ # VPC-SC perimeters and access levels
    ├── main.tf
    ├── variables.tf
    └── outputs.tf

Advanced Patterns

Code Execution Sandbox Configuration

The ADK Code Execution sandbox defaults to a 14-day TTL. Override with:

resource "google_vertex_ai_agent_engine" "agent" {
  provider     = google-beta
  project      = var.project_id
  location     = var.region
  display_name = var.agent_config.display_name

  agent_engine_config {
    code_execution_config {
      enabled = var.agent_config.code_execution
      # Sandbox timeout: max 14 days (1209600 seconds)
      execution_timeout = "1209600s"
    }
    memory_bank_config {
      enabled = var.agent_config.memory_bank
    }
  }
}

IAM Least Privilege Pattern

resource "google_service_account" "agent_sa" {
  account_id   = "adk-agent-runner"
  display_name = "ADK Agent Runner (least privilege)"
}

resource "google_project_iam_member" "agent_roles" {
  for_each = toset([
    "roles/aiplatform.user",
    "roles/logging.logWriter",
    "roles/monitoring.metricWriter",
  ])
  project = var.project_id
  role    = each.value
  member  = "serviceAccount:${google_service_account.agent_sa.email}"
}

Remote State Data Source

Reference ADK outputs from other Terraform configs:

data "terraform_remote_state" "adk" {
  backend = "gcs"
  config = {
    bucket = "my-project-tf-state"
    prefix = "adk-infrastructure"
  }
}

# Use agent endpoint in another module
locals {
  agent_endpoint = data.terraform_remote_state.adk.outputs.agent_endpoint
}

Troubleshooting

API Enablement

Ensure the following APIs are enabled before running terraform apply:

gcloud services enable aiplatform.googleapis.com \
  compute.googleapis.com \
  iam.googleapis.com \
  cloudresourcemanager.googleapis.com \
  accesscontextmanager.googleapis.com \
  --project=PROJECT_ID

State Lock Issues

If Terraform state is locked from a previous failed run:

terraform force-unlock LOCK_ID

Quota Limits

Agent Engine has per-project quotas. Check current usage:

gcloud alpha quotas info list \
  --project=PROJECT_ID \
  --service=aiplatform.googleapis.com \
  --filter="metric:agent_engines"

Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provisions Google Cloud infrastructure using Terraform. It uses restricted shell commands and generates infrastructure code dynamically. While it identifies troubleshooting steps that involve temporary high-privilege roles, the skill's operations are otherwise standard and secure.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 820dfc8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
What it can do
Reads files Edits files Runs commands
version
2.23.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "devops",
  "deployment",
  "terraform",
  "iam"
]
All 7 allowed tools
ReadWriteEditGrepGlobBash(terraform:*)Bash(gcloud:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/adk-infra-expert