Lightlines
By hashicorp

terraform-test

hashicorp7.3k installs

Catch infrastructure regressions before they ship.

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

Security reviews

Not yet reviewed.


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.


Access · 2

This skill

AWS

Write

Creates and cleans up AWS resources

AWS data sources

Read

Reads AWS data sources