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