本文へスキップ
Kitbay
スキル公式active

terraform-test

MPL-2.02026年11月4日 更新925GitHubスター

HashiCorp's skill for Terraform's built-in test framework.

スキルの内容

HashiCorp's skill for Terraform's built-in test framework. It explains .tftest.hcl files, run blocks, assertions, apply and plan test modes and mock providers (from Terraform 1.7), and helps an agent write unit and integration tests for modules, validate outputs and resource settings, and fix test syntax or failures. Reference files hold mock provider patterns, GitHub Actions and GitLab CI examples, and a complete example suite for a VPC module, loaded only when needed. Tests in apply mode create real temporary resources.

できること

  • Write .tftest.hcl test files
  • Mock providers and data sources
  • Run tests in plan or apply mode
  • Add Terraform tests to CI pipelines