LogoClawIndex
CasesSkillsAbout
LogoClawIndex

terraform-test - Write and run Terraform configuration tests

Guides writing and running Terraform tests for scenarios, assertions, providers, modules, outputs, and validation failures.

Tags

Updated: 2026-12-02
Terraforminfrastructure testingHCLmodule testingprovider mockingassertions

Capabilities

Create Terraform test filesDefine test scenarios with run blocksRun plan or apply testsValidate resources and outputs with assertions

Typical Inputs

Terraform module configuration.tftest.hcl or .tftest.json filesTest variables and provider configurations

Typical Outputs

Test pass or failure statusAssertion failure messagesTemporary test resources

What this skill does

  • Create Terraform test files
  • Define test scenarios with run blocks
  • Run plan or apply tests
  • Validate resources and outputs with assertions
  • Mock providers and data sources
  • Test expected validation failures
  • Test local and registry modules
  • Configure plan behavior and variables
  • Troubleshoot test syntax and execution

Inputs

  • Terraform module configuration
  • .tftest.hcl or .tftest.json files
  • Test variables and provider configurations
  • Module source addresses
  • Provider credentials and access

Outputs

  • Test pass or failure status
  • Assertion failure messages
  • Temporary test resources
  • Test state changes

Requirements

  • Terraform CLI with test framework support
  • Configured provider plugins
  • Resource permissions for apply-mode tests

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.