terragrunt-validator

Validate Terragrunt and Terraform configurations with HCL, tflint, and security scans.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill terragrunt-validator-sudohakan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: terragrunt-validator
Source: https://github.com/sudohakan/claude-code-dotfiles/tree/main/config/skills/cc-devops-skills/devops-skills-plugin/skills/terragrunt-validator
Command: npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill terragrunt-validator-sudohakan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires terragrunt, terraform, tflint, trivy, checkov, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the comprehensive validation, linting, and security scanning of Terragrunt and Terraform infrastructure-as-code configurations, ensuring best practices and preventing common misconfigurations.

Core Features & Use Cases

  • Comprehensive Validation: Checks HCL formatting, syntax, input validation, and Terraform configuration.
  • Security Scanning: Integrates with Trivy or Checkov to identify security vulnerabilities.
  • Linting: Uses tflint to enforce coding standards and best practices.
  • Dependency Graph Analysis: Validates module dependencies and detects cycles.
  • Dry-Run Planning: Performs terragrunt plan to preview changes without applying them.
  • Use Case: Before merging infrastructure changes, run this Skill to automatically verify that all Terragrunt configurations adhere to security policies, are syntactically correct, and will not introduce breaking changes.

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 before merging infrastructure changes?▼

Validate Terragrunt configurations by running a multi-stage process that checks HCL formatting, syntax, input variables, and Terraform configuration. This prevents common misconfigurations and ensures infrastructure-as-code adheres to best practices before merging.

What is the best way to run security scanning on Terraform and Terragrunt IaC files?▼

Security scanning on Terraform and Terragrunt is best handled by integrating Trivy or Checkov to identify vulnerabilities. This automated scanning ensures policies are enforced and security issues are caught during validation.

Does Terragrunt validation work with tflint for linting infrastructure-as-code?▼

Yes, Terragrunt validation integrates with tflint to enforce coding standards and best practices. This linting stage analyzes your configuration files to catch syntax issues and maintain consistent infrastructure code quality.

Can I preview Terraform changes without applying them during Terragrunt validation?▼

Yes, you can preview changes without applying them by performing a dry-run plan. This executes a terragrunt plan to show potential infrastructure modifications safely before any actual deployment occurs.

Do I need Python3 and Terragrunt installed to validate HCL formatting and module dependencies?▼

Yes, Python3, Terragrunt, and Terraform are required dependencies. They provide the execution environment needed to check HCL formatting, validate syntax, analyze module dependency graphs for cycles, and run security scans.

How do I check multi-module Terragrunt configurations for dependency cycles?▼

Check multi-module Terragrunt configurations by analyzing the dependency graph during validation. This process detects cycles within module dependencies and ensures complex infrastructure-as-code structures resolve correctly.