terragrunt-validator

Validate Terragrunt IaC configurations with HCL, syntax, lint, and security checks.

9|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/pantheon-org/tekhne --skill terragrunt-validator-pantheon-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terragrunt-validator
Source: https://github.com/pantheon-org/tekhne/tree/main/skills/infrastructure/terragrunt/validator
Command: npx skills add https://github.com/pantheon-org/tekhne --skill terragrunt-validator-pantheon-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the validation of Terragrunt Infrastructure as Code (IaC) configurations, ensuring code quality, security, and adherence to best practices.

Core Features & Use Cases

  • Comprehensive Validation: Checks HCL formatting, input validation, Terragrunt syntax, Terraform configuration, linting (tflint), and security scanning (Trivy/tfsec).
  • Dependency Graph Analysis: Validates dependency structures within your Terragrunt projects.
  • Best Practices Enforcement: Guides users through critical best practices for Terragrunt configurations.
  • Use Case: Before committing changes to your production infrastructure code, run this Skill to catch potential errors, security vulnerabilities, and formatting inconsistencies, preventing costly mistakes.

Quick Start

Run the comprehensive validation script for the current directory.

Frequently Asked Questions about terragrunt-validator

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

FAQPage Schema
How do I validate Terragrunt configurations for syntax and security vulnerabilities?

To validate Terragrunt configurations, run a comprehensive suite of checks covering HCL formatting, Terraform syntax, input validation, tflint, and security scanning with Trivy or tfsec to catch errors and vulnerabilities.

What is the best way to enforce best practices in Terragrunt IaC projects?

Enforcing best practices in Terragrunt IaC involves automating checks for HCL formatting, dependency graph analysis, and security scanning to ensure robust and secure infrastructure code before committing changes.

Does Terragrunt validation work with tflint and tfsec for infrastructure code scanning?

Terragrunt validation integrates natively with tflint for linting and tfsec or Trivy for security scanning, executing these tools to analyze HCL formatting and identify security vulnerabilities.

How do I analyze dependency graphs in Terragrunt configurations?

Analyzing dependency graphs in Terragrunt involves executing validation scripts that inspect dependency structures within your IaC projects to ensure correct module relationships and robust infrastructure management.

Can I run Terraform syntax checks and input validation before committing infrastructure code?

You can run Terraform syntax checks and input validation by executing a comprehensive validation script that inspects HCL formatting and Terragrunt configurations to prevent costly production mistakes.

What limitations exist when scanning Terragrunt configurations with Trivy or tfsec?

Scanning Terragrunt configurations with Trivy or tfsec focuses on static security analysis and syntax validation, meaning it validates code quality but does not execute or provision the actual cloud infrastructure resources.