# Terraform Iac

> Terraform and OpenTofu infrastructure as code best practices - generate HCL configurations, module patterns, state management, CI/CD workflows, and cloud provider templates for AWS, GCP, Azure

- Skill: `chainlesschain/terraform-iac` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add chainlesschain/terraform-iac`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chainlesschain/terraform-iac/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- License: MIT
- Author: chainlesschain (https://skillmd.com/u/chainlesschain)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/chainlesschain/terraform-iac

---


# Terraform IaC Skill

Infrastructure as code with Terraform/OpenTofu best practices.

## Usage

```
/terraform-iac generate "<infrastructure description>"
/terraform-iac module <module-name>
/terraform-iac template <cloud>-<service>
/terraform-iac validate [path]
```

## Best Practices Applied

- Remote state with locking (S3+DynamoDB / GCS / Azure Blob)
- Module composition pattern
- Proper variable typing and validation
- Output values for cross-module references
- Security group / IAM least privilege
- Tagging strategy
- Environment separation (dev/staging/prod)

## Cloud Templates

`aws-vpc` `aws-ecs` `aws-rds` `aws-lambda` `gcp-gke` `gcp-cloudsql` `azure-aks` `azure-cosmosdb`

