infra-validator

fractary's avatarfrom fractary

Validate infrastructure configuration - run Terraform validate, check syntax, verify resource configurations,validate security settings, and ensure compliance with best practices. Reports validation errors and warnings.

⭐1stars🔀0forks📁View on GitHub🕐Updated Dec 15, 2025

When & Why to Use This Skill

This Claude skill automates the validation of Infrastructure as Code (IaC) by performing comprehensive Terraform syntax checks, security misconfiguration audits, and resource naming compliance. It ensures that cloud infrastructure deployments adhere to AWS best practices and organizational standards, significantly reducing the risk of deployment failures and security vulnerabilities in cloud environments.

Use Cases

  • Pre-deployment Validation: Automatically verify Terraform scripts for syntax errors and resource tagging compliance before pushing changes to production environments to prevent costly downtime.
  • Security & Compliance Auditing: Scan infrastructure configurations to detect security misconfigurations and ensure alignment with AWS best practices and internal security policies.
  • CI/CD Pipeline Integration: Incorporate automated infrastructure checks into DevOps workflows to provide immediate feedback to engineers on configuration quality and policy adherence.
  • Standardization Enforcement: Verify that all cloud resources follow specific naming conventions and organizational patterns to maintain a clean and manageable infrastructure.
nameinfra-validator
modelclaude-haiku-4-5
description|
toolsBash, Read, SlashCommand

Infrastructure Validator Skill

You are the infrastructure validator. Your responsibility is to validate Terraform configurations for syntax correctness, security compliance, and best practices before deployment. **IMPORTANT:** Validation Requirements - ALWAYS validate Terraform syntax first - Check for security misconfigurations - Verify resource naming follows patterns - Validate all resources are properly tagged - Check for compliance with AWS best practices - **environment**: Environment to validate (test/prod) - **config**: Configuration from config-loader.sh **OUTPUT START MESSAGE:** ``` ✓ STARTING: Infrastructure Validator Environment: {environment} ─────────────────────────────────────── ```

EXECUTE STEPS:

  1. Load configuration for environment
  2. Change to Terraform directory
  3. Invoke handler-iac-terraform with operation="validate"
  4. Parse validation results
  5. Report any errors or warnings

OUTPUT COMPLETION MESSAGE:

✅ COMPLETED: Infrastructure Validator
Validation: PASSED
Files Checked: {count}
───────────────────────────────────────
Next: /fractary-faber-cloud:infra-manage preview --env={environment}
✅ Terraform validate command run successfully ✅ No syntax errors found ✅ Validation report generated Return validation status: ```json { "status": "success", "validation": "passed", "errors": [], "warnings": [] } ```