# terraform-infrastructure-as-code

Equips your coding agent to structure Terraform manifests, configure cloud providers, and manage remote state. Useful when spinning up infrastructure with HCL.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 453 installs · ★ 62
- Author: manutej
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-devops-suite/skills/terraform-infrastructure-as-code/SKILL.md
- Updated: 2026-06-13
- HTML: https://affpapa.org/en/nevibecode/skills/terraform-infrastructure-as-code

## What it does

This skill brings detailed HCL conventions directly into the agent context. It explains how to structure declarations for cloud resources, input variables, and reusable modules. Example setups include compute instances, VPC networking, and S3 storage with encryption. The guidance also covers standard CLI workflows from `terraform init` to `terraform apply`.

You need a working grasp of Git and at least one cloud platform like AWS or Azure. Remote state needs explicit backend setup. CLI familiarity is equally mandatory before applying these files. Beyond basic resource blocks, the instructions outline lifecycle rules such as `prevent_destroy` alongside workspace isolation.

## Requirements
- Works with: Terraform

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure-as-code -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/terraform-infrastructure-as-code/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/terraform-infrastructure-as-code/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure-as-code -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/terraform-infrastructure-as-code/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure-as-code -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/terraform-infrastructure-as-code/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install manutej/luxor-claude-marketplace terraform-infrastructure-as-code
```

2. **Manually: put the files in place**
- File: `.github/skills/terraform-infrastructure-as-code/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure-as-code -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/manutej/luxor-claude-marketplace --path plugins/luxor-devops-suite/skills/terraform-infrastructure-as-code
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/terraform-infrastructure-as-code/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add manutej/luxor-claude-marketplace --skill terraform-infrastructure-as-code -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/manutej/luxor-claude-marketplace/tree/HEAD/plugins/luxor-devops-suite/skills/terraform-infrastructure-as-code/SKILL.md

## When to use it
- Declare AWS infrastructure including compute instances, subnets, and security groups
- Configure remote backend storage for Terraform state tracking
- Define resource lifecycle rules using `create_before_destroy` and `prevent_destroy`
- Structure arguments for `terraform plan` and `terraform apply` executions

## Example prompts
- Write an `aws_vpc` configuration with public and private subnets in `us-west-2`
- Create an `aws_s3_bucket` resource with enabled versioning and AES256 encryption
- Show me how to apply a saved plan file using `terraform apply`

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 354000 installs

From the same set: [manutej/luxor-claude-marketplace](https://affpapa.org/en/nevibecode/by/manutej/luxor-claude-marketplace.md) — 65 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
