terraform-audit

Audit Terraform AWS configurations and generate severity-classified Markdown reports.

42|7|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/addxai/enterprise-harness-engineering --skill terraform-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-audit
Source: https://github.com/addxai/enterprise-harness-engineering/tree/main/skills/terraform-audit
Command: npx skills add https://github.com/addxai/enterprise-harness-engineering --skill terraform-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unaudited Terraform infrastructure-as-code often contains undetected security vulnerabilities, cost inefficiencies, poor code quality, and architectural flaws that can lead to cloud outages, unexpected spend spikes, compliance violations, and technical debt in AWS environments.

Core Features & Use Cases

  • 4-Dimension Comprehensive Audit: Evaluates Terraform codebases across security & compliance (aligned with CIS AWS Foundations Benchmark), cost optimization, code quality, and architecture design (aligned with AWS Well-Architected Framework), with a primary focus on AWS resources.
  • Severity-Classified Reporting: Generates a structured Markdown report with all findings sorted by Critical, Important, and Minor severity, including affected file locations, risk explanations, and actionable HCL remediation code.
  • Scale-Adaptive Workflow: Automatically adjusts audit strategy based on project size (small <10 .tf files, medium 10-30, large 30+), prioritizing high-risk modules for large codebases.
  • Use Case: Ideal for engineering, DevOps, and SRE teams to run pre-deployment reviews, enforce infrastructure compliance standards, and identify cost-saving opportunities before provisioning AWS resources.

Quick Start

Use the terraform-audit skill to scan your Terraform project root and generate a full prioritized audit report of all security, cost, code quality, and architecture findings with fix recommendations.

Frequently Asked Questions about terraform-audit

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

FAQPage Schema
How do I audit Terraform code for security vulnerabilities and cost issues?

To audit Terraform code for security and cost issues, you can scan your project root to identify vulnerabilities and inefficiencies. This generates a severity-classified Markdown report with actionable HCL remediation steps aligned with CIS AWS and Well-Architected frameworks.

Does this Terraform audit tool support large infrastructure-as-code repositories?

Yes, this Terraform audit tool supports large repositories. It features a scale-adaptive workflow that automatically adjusts its audit strategy based on project size, prioritizing high-risk modules in codebases with 30 or more .tf files.

Can I use this to check AWS infrastructure compliance before deployment?

Yes, you can use this to check AWS infrastructure compliance before deployment. It evaluates Terraform configurations against the CIS AWS Foundations Benchmark to prevent compliance violations and ensure cloud resources meet security best practices.

What is the best way to find cost-saving opportunities in AWS Terraform projects?

The best way to find cost-saving opportunities in AWS Terraform projects is to perform a comprehensive 4-dimension audit. This process evaluates cost optimization alongside security and architecture to detect inefficiencies before resource provisioning.

How does the audit report format remediation steps for defective HCL code?

The audit report formats remediation steps as a structured Markdown document. Findings are sorted by Critical, Important, and Minor severity, providing affected file locations, risk explanations, and actionable HCL code fixes for immediate implementation.

Why should I run an infrastructure-as-code review instead of just scanning running AWS resources?

Running an infrastructure-as-code review prevents issues before provisioning, avoiding cloud outages and unexpected spend spikes. It detects architectural flaws and technical debt in the Terraform source code that post-deployment resource scanning might miss.