Lightlines
By hashicorp

terraform-test

hashicorp

Catch infrastructure regressions before they ship.

infrastructure testing

What it does

Validates Terraform configuration behavior with test files, scenarios, assertions, mocks, and test runs.

When to use it

Use when creating Terraform test files, writing run-block scenarios, validating infrastructure behavior, mocking providers or data sources, testing modules, or troubleshooting Terraform test syntax and execution.

How to use it

Give it a Terraform project and a testing goal; it returns Terraform test files and guidance for running and troubleshooting them.

What you provide

  • An existing project

Uses


Access · 2

This skill

AWS

Write

Creates and cleans up AWS resources

AWS data sources

Read

Reads AWS data sources

What you need · 3

The Terraform CLI must be available to create, validate, and run the tests; mock providers require Terraform 1.7.0 or newer.

The AWS access key environment variable enables integration tests that create real AWS resources.

The AWS secret access key environment variable enables integration tests that create real AWS resources.


About this skill

Visibility
Public
Repository
hashicorp/agent-skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
4