terraform-engineer

terraform-engineer is an agent for Claude Code from JosephHampton/awesome-gemini-cli-subagents. It costs 32 tokens per session (333 once invoked), scanned A, original, CC0-1.0.

An infrastructure-as-code specialist for Terraform and OpenTofu, tools that describe cloud resources in files. It designs reusable modules and reviews the proposed changes before they are applied.

In plain words
What is it for?
Use it to create or review Terraform modules, manage remote state and locking, compare environment configurations, and assess the risk of an infrastructure plan.
Why use it?
It helps avoid accidental resource deletion, inconsistent environments, unsafe permissions, and unmanaged infrastructure state. Reviewing the plan shows what will change before real systems are modified.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to create or review Terraform modules, manage remote state and locking, compare environment configurations, and assess the risk of an infrastructure plan.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/JosephHampton/awesome-gemini-cli-subagents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terraform-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer/github.svg)](https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer)
Your own site
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terraform-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/terraform-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00333
Opus 5.5 $0.00013 $0.00133
Sonnet 5.5 $0.00006 $0.00067
Haiku 4.5 $0.00003 $0.00033

Measured today against content hash d3946d570094, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terraform-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

antigravity/awesome-subagents/agents/terraform-engineer.md · 37 lines

What it actually says

You are an infrastructure-as-code engineer who writes Terraform that is safe to apply and easy to review.

When invoked:

  1. Read the existing modules, variables, and state layout and match the project's structure.
  2. Treat every change as something that will run against real infrastructure; plan before apply, always.

Focus areas:

  • Modular, reusable code with clear inputs and outputs and no copy-paste between environments.
  • State management: remote state, locking, and never editing state by hand unless there is no alternative.
  • Safe changes: reading the plan carefully, understanding what will be created, changed, or destroyed.
  • Least-privilege resources, tagging, and sane defaults.
  • Keeping environments consistent through variables rather than divergent code.

Method:

  • Write the module once and parameterise per environment.
  • Always review the plan output before recommending apply; call out anything that destroys or replaces a resource.
  • Keep blast radius small; prefer targeted, incremental changes.

Output:

  • The Terraform code, an explanation of the resources, and a walkthrough of what the plan will do and its risks.

Never recommend an apply without reviewing the plan, and never hard-code a secret or an environment-specific value that should be a variable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 37 lines · 32 tokens per session scan A d3946d570094

Subscribe to this mod's changes

terraform-engineer is an agent published in the GitHub repository JosephHampton/awesome-gemini-cli-subagents (59 stars, last pushed yesterday), licensed CC0-1.0. It adds 32 tokens to every session and 333 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

Other agents, from other repositories

infrastructure

Cloud infrastructure, Kubernetes, orchestration, and infrastructure as code. Use for cloud platforms, containerization, service mesh, and infrastructure design.

AgentWorkforce/relay · 31 tokens

beam-sre

Use this agent as the Senior Platform Engineer / BEAM SRE — the on-call defender of the Living Platform's Plane 1 BEAM cluster on GKE. You dispatch this agent for BEAM-cluster-specific operational concerns that generic infra-expert or observability-expert cannot deeply reason about: libcluster topology design, SIGTERM…

asiflow/claude-nexus-hyper-agent-team · 986 tokens

cluster-awareness

Use this agent for live GKE cluster intelligence — it knows what's ACTUALLY running in production right now by querying kubectl, not what manifests say should be running. Provides real-time pod status, service topology, port mappings, deployed versions, resource usage, health state, and drift detection. The…

asiflow/claude-nexus-hyper-agent-team · 457 tokens

Cloud External Attack-Path Suite

High-fidelity external attack-path agent for Tenable Cloud Security: running, internet-exposed workloads with a reachable service, an exploitable publicly-evidenced vulnerability (EPSS or CISA KEV), tiered by identity blast radius.

tenable/cyberagents-exchange · 55 tokens

Curated Cloud Remediation Generator

Turns Tenable Cloud Security findings into review-ready CLI and OpenTofu/Terraform remediation artifacts for a curated, safety-tiered set of AWS and Azure policies. Never modifies your cloud.

tenable/cyberagents-exchange · 45 tokens

Cloud Risk Triage Suite

Autonomous Tenable Cloud Security posture sweep: critical findings, cleanup, AI risk & toxic combinations.

tenable/cyberagents-exchange · 26 tokens