Scaffold a new Terraform module the idiomatic way
Quando usar: You're splitting out a module for internal or public reuse and want the structure right the first time.
Fluxo
-
State the module's purposeUse the terraform-skill. Scaffold a module for an AWS ECS service with optional ALB and CloudWatch alarms.✓ Copiado→ Structure follows terraform-aws-modules conventions — main.tf, variables.tf, outputs.tf, versions.tf, README.md, examples/
-
Add testsRecommend tests — native or Terratest? Apply the decision framework.✓ Copiado→ Reasoned choice and scaffolded test files
Resultado: A module that passes review on the first PR.
Armadilhas
- Versioning too loose (~> vs specific) — Skill defaults to pinned minors for required_providers