terraform-station-test

Write and maintain Terraform tests for the Station module in tests/*.tftest.hcl.

9|Updated Mar 27, 2023
One-click install
npx skills add https://github.com/blinqas/station --skill terraform-station-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-station-test
Source: https://github.com/blinqas/station/tree/main/.agents/skills/terraform-station-test
Command: npx skills add https://github.com/blinqas/station --skill terraform-station-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps engineering teams write, maintain, and validate Terraform tests for the Station module, ensuring changes behave correctly across configurations and through CI pipelines.

Core Features & Use Cases

  • Test structure guidance: outlines the canonical placement of tests in tests/.tftest.hcl and setup-/ modules.
  • Configuration coverage: validates minimum and maximum input configurations and ensures consistent test behavior.
  • CI alignment: guides integration with selective CI test execution and artifact outputs.

Quick Start

Run a focused test against the Station module by filtering with terraform test -filter=tests/<feature>.tftest.hcl.

Frequently Asked Questions about terraform-station-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Terraform tests for a module using .tftest.hcl files?

To write Terraform tests, place .tftest.hcl files in the tests/ directory and use setup-* modules to wire dependencies, applying deterministic patterns and clear assertions to validate module behavior across configurations.

How do I run a focused terraform test for a specific feature locally?

You can run a focused terraform test locally by filtering tests with the command terraform test -filter=tests/<feature>.tftest.hcl to validate specific module behaviors without executing the entire test suite.

What is the purpose of setup-* modules in terraform test files?

Setup-* modules wire necessary dependencies and fixtures for terraform tests, ensuring the target module is validated correctly under controlled conditions across different configuration scenarios.

Can I align terraform test execution with selective CI pipelines?

Yes, you can align terraform test changes with CI selective execution by structuring tests to support filtered runs and artifact outputs, ensuring only relevant tests trigger during pipeline execution.

How do I validate minimum and maximum input configurations in Terraform tests?

Validating minimum and maximum configurations involves applying proper variable overrides within your .tftest.hcl files to ensure the module behaves consistently and deterministically at both configuration extremes.