Kitchen-Terraform

A set of Test Kitchen plugins for testing Terraform configurations.

Visit Website →

Overview

Kitchen-Terraform is a plugin for Test Kitchen, a testing framework originally developed for Chef cookbooks. This plugin allows you to use Test Kitchen to write and run automated tests for your Terraform configurations. It follows the same workflow as other Test Kitchen plugins: create a test environment, converge it with your code, verify its state, and then destroy it.

✨ Key Features

  • Test Terraform configurations with Test Kitchen
  • Supports multiple testing frameworks (InSpec, Serverspec)
  • Automated creation and destruction of test infrastructure
  • Follows the standard Test Kitchen workflow

🎯 Key Differentiators

  • Leverages the existing Test Kitchen ecosystem
  • Familiar workflow for users of Test Kitchen
  • Good integration with compliance frameworks like InSpec

Unique Value: Enables teams to use the familiar and powerful Test Kitchen framework to write automated tests for their Terraform configurations.

🎯 Use Cases (3)

Integration testing of Terraform modules End-to-end testing of Terraform configurations Validating that Terraform has created the expected infrastructure

✅ Best For

  • Using InSpec to test that a Terraform-created web server is running and accessible
  • Verifying that a Terraform module has created the correct security group rules
  • Testing a complex Terraform configuration in an isolated environment

💡 Check With Vendor

Verify these considerations match your specific requirements:

  • Static code analysis of Terraform
  • Unit testing of Terraform modules (Terratest is often a better fit)

🏆 Alternatives

Terratest

For teams already using Test Kitchen, Kitchen-Terraform provides a much lower barrier to entry for testing Terraform compared to learning a new framework like Terratest.

💻 Platforms

CLI

🔌 Integrations

Test Kitchen Terraform InSpec Serverspec

💰 Pricing

Contact for pricing
Free Tier Available

Free tier: Kitchen-Terraform is open-source and free to use.

Visit Kitchen-Terraform Website →