🔧

Terraform

v1.10.0Apache 2.0

Terraform configuration validation and infrastructure-as-code best practices

Installation

Install han binary (required for hooks to work):

curl -fsSL https://han.guru/install.sh | bash

Then install this plugin:

han plugin install terraform

Overview

Terraform configuration validation and infrastructure-as-code best practices.

Features

  • Validates Terraform configuration formatting with terraform fmt
  • Validates Terraform syntax and configuration with terraform validate
  • Provides skills for working with Terraform configurations, state, and modules

Requirements

Install Terraform:

bash
# macOS
brew install terraform

# Linux
wget https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
unzip terraform_1.6.0_linux_amd64.zip
sudo mv terraform /usr/local/bin/

Skills Included

  • terraform-configuration: Writing and organizing Terraform configurations
  • terraform-state: Managing Terraform state files
  • terraform-modules: Creating reusable Terraform modules

Hook Behavior

Validates Terraform configurations in directories containing .tf files using terraform fmt and terraform validate.

Installation

Install with npx (no installation required):

bash
han plugin install jutsu-terraform

LSP Servers

🧠

terraform-ls

Languages:

terraformterraform-vars

File Extensions:

.tf.tfvars

Command:

${CLAUDE_PLUGIN_ROOT}/scripts/lsp-entrypoint.sh serve

Skills

Hooks

âš ī¸

Token Usage Notice

Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.

🛑

Stop

Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.