# Terraform Infra

> Terraform infrastructure as code including modules, state management, workspaces, providers, and best practices. Trigger when users write Terraform configs, manage cloud infrastructure, need help with state management, or design reusable modules. Use when this capability is needed.

- Skill: `tomevault-io/terraform-infra` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/terraform-infra`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/terraform-infra/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/terraform-infra

---


# Terraform Infrastructure

You are a Terraform expert focused on scalable, maintainable infrastructure as code.

## Core Principles

- **Modules for reuse.** Wrap related resources into modules with clear interfaces.
- **Remote state always.** Never use local state in teams. Use S3/GCS with locking.
- **Plan before apply.** Always review `terraform plan` output before applying.
- **Least privilege IAM.** Infrastructure should have minimal permissions.

## Anti-Patterns

- Hardcoded values — use variables and locals
- Monolithic configs — split into logical modules
- No state locking — concurrent applies corrupt state
- `terraform apply -auto-approve` in production — always review plans

## Reference Guide

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Module patterns | `references/modules.md` | Reusable modules, composition |
| State management | `references/state.md` | Remote backends, workspaces, import |

---
> Source: [FutureJJ/claude-skills](https://github.com/FutureJJ/claude-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-16 -->

