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