terraform-test 是做什么的?
编写和运行 Terraform 测试的全面指南。适用于创建测试文件(.tftest.hcl)、编写带有运行块的测试场景、通过断言验证基础设施行为、模拟 provider 和数据源、测试模块输出和资源配置,或排查 Terraform 测试语法和执行问题。
编写和运行 Terraform 测试的全面指南。适用于创建测试文件(.tftest.hcl)、编写带有运行块的测试场景、通过断言验证基础设施行为、模拟 provider 和数据源、测试模块输出和资源配置,或排查 Terraform 测试语法和执行问题。
hashicorp/terraform-test 是一个专门用于 Terraform 测试文件编写与执行的技能。它为开发者提供了全面的指导,涵盖如何创建 `.tftest.hcl` 测试文件、使用 `run` 块定义测试场景、使用 `assert` 断言验证基础设施行为,以及模拟 provider 和数据源以便进行更精细的测试。该技能支持在多种平台(如 Terraform CLI、CI/CD 管道)上运行测试,并能帮助用户调试测试语法错误或执行失败。通过清晰的文档和示例,它显著提高了基础设施即代码(IaC)的测试效率与可靠性,确保模块输出和资源配置符合预期。对于需要确保 Terraform 配置正确性和稳定性的开发团队,这是一个不可或缺的工具。
npx skills add https://github.com/hashicorp/agent-skills/tree/main/skills/terraform-testInstalled? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →
编写和运行 Terraform 测试的全面指南。适用于创建测试文件(.tftest.hcl)、编写带有运行块的测试场景、通过断言验证基础设施行为、模拟 provider 和数据源、测试模块输出和资源配置,或排查 Terraform 测试语法和执行问题。
This repo contains 15 individual skills — each has its own dedicated page.
Build Amazon Machine Images (AMIs) with Packer using the amazon-ebs builder. Use when creating custom AMIs for EC2 instances.
Build Azure managed images and Azure Compute Gallery images with Packer. Use when creating custom images for Azure VMs.
Azure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules that need AVM certification.
Use this when scaffolding a new Terraform provider.
Implement Terraform Provider actions using the Plugin Framework. Use when developing imperative operations that execute at lifecycle events (before/after create, update, destroy).
Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema descriptions. Use when adding or changing provider configuration, resources, data sources, ephemeral resources, list resources, functions, or guides; when validating generated docs; and when troubleshooting missing or incorrect Registry documentation.
Implement Terraform Provider resources and data sources using the Plugin Framework. Use when developing CRUD operations, schema design, state management, and acceptance testing for provider resources.
Terraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigStateChecks with custom statecheck.StateCheck implementations, plan checks, CompareValue for cross-step assertions, config helpers, import testing with ImportStateKind, sweepers, and scenario patterns (basic, update, disappears, validation, regression), and ephemeral resource testing with the echoprovider package. Use when writing, reviewing, or debugging provider acceptance tests, including questions about statecheck, plancheck, TestCheckFunc, CheckDestroy, ExpectError, import state verification, ephemeral resources, or how to structure test files.
Push Packer build metadata to HCP Packer registry for tracking and managing image lifecycle. Use when integrating Packer builds with HCP Packer for version control and governance.
Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.
Guide for running acceptance tests for a Terraform provider. Use this when asked to run an acceptance test or to run a test with the prefix `TestAcc`.
Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management. Use when bringing unmanaged infrastructure under Terraform control, auditing cloud resources, or migrating to IaC.
Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure.
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.
Build Windows images with Packer using WinRM communicator and PowerShell provisioners. Use when creating Windows AMIs, Azure images, or VMware templates.
Gemini CLI one-shot prompts, summaries, generation, skills, hooks, MCP, or Gemma routing.
Fetch GitHub issues, select candidates, spawn background fix agents, open PRs, and optionally process PR review comments.
Create, edit, audit, tidy, validate, or restructure AgentSkills and SKILL.md files.
Search, install, update, sync, or publish agent skills with the ClawHub CLI and registry.
Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.
List, configure, authenticate, call, and inspect MCP servers/tools with mcporter over HTTP or stdio.