Scaffold a new Terraform module the idiomatic way
Когда использовать: You're splitting out a module for internal or public reuse and want the structure right the first time.
Поток
-
State the module's purposeUse the terraform-skill. Scaffold a module for an AWS ECS service with optional ALB and CloudWatch alarms.✓ Скопировано→ 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.✓ Скопировано→ Reasoned choice and scaffolded test files
Итог: A module that passes review on the first PR.
Подводные камни
- Versioning too loose (~> vs specific) — Skill defaults to pinned minors for required_providers