Now available in GitHub Actions

AI-assisted
Terraform PR
reviews

Catch security risks, cost changes, and Terraform quality issues before merge. InfraGuard AI turns scanner output into one clear Pull Request review comment.

tfsec + Checkov
Infracost
tflint + fmt
acme-corp/infrastructure #247
infraguard-aibot
2 minutes ago

๐Ÿ›ก๏ธ Terraform Review Summary

feat/new-storage-buckets

2 findings

Security

+$184/mo

Cost

3 issues

Style

HIGHPublic S3 bucket ACL detected
MEDMissing server-side encryption
Do not merge until high findings are resolved
tfsec passed

+$84/month

cost delta

scroll
The Problem

Terraform reviews are harder
than they look

A small Terraform diff can change security posture, cloud costs, and availability โ€” but raw CI output gives reviewers little signal about what actually matters.

Hidden IAM Changes

A two-line policy change can silently grant overly broad permissions to any AWS resource.

Public Exposure Risk

One misconfigured attribute can expose S3 buckets or RDS instances to the entire internet.

Missing Encryption

Databases and storage can be provisioned without encryption enabled by default.

Invisible Cost Spikes

Resizing a single instance looks minor in a diff but can add thousands per month.

Too Much CI Output

6 separate scanner jobs produce hundreds of log lines that reviewers never fully read.

No Unified Context

Security, cost, and style issues live in separate tools with no consolidated view.

The average Terraform PR touches 6+ resource types and is reviewed in under 4 minutes

The Solution

One review comment.
All the important signals.

InfraGuard AI collects scanner results, cost estimates, and lint output, then creates a ranked and readable summary your team can actually act on.

Before
CI Output โ€” 6 jobs

tfsec: [HIGH] aws-s3-block-public-acls โ€” main.tf:42

tfsec: [MEDIUM] aws-s3-no-public-buckets โ€” main.tf:38

tfsec: [LOW] aws-s3-versioning-enabled โ€” main.tf:51

checkov: PASSED: CKV_AWS_18: S3 bucket logging

checkov: FAILED: CKV_AWS_19: S3 bucket encryption

checkov: FAILED: CKV_AWS_145: S3 KMS key

infracost breakdown --path .

Project: acme-corp/infrastructure

OVERALL TOTAL Monthly cost +$84.23

tflint: Warning - Missing description for variable

terraform fmt: modules/network/main.tf not formatted

Scattered across 6 CI jobs

After
InfraGuard AI โ€” PR #247
๐Ÿ”ด

1 High

Public S3 bucket โ€” review before merge

๐ŸŸก

2 Medium

Missing encryption + IAM wildcard

๐Ÿ’ฐ

+$84/mo

EC2 resize: m5.xlarge โ†’ m5.2xlarge

๐Ÿ“

3 Style

fmt + 2 tflint variable warnings

One comment, always current

One PR comment with full context

6 scanner tools consolidated
AI-explained in plain language
One PR comment, always up to date
Three Review Lanes

Every angle, automatically covered

InfraGuard AI runs security, cost, and style analysis in parallel โ€” so nothing slips through the cracks.

Security Review

Infrastructure risk analysis

tfsecCheckov
Public access configuration
Weak IAM permissions
Missing encryption
Insecure defaults
Exposed cloud resources

Sample Output

HIGH

aws-s3-block-public-acls

modules/storage/main.tf:42

MEDIUM

aws-s3-encryption-customer-key

modules/storage/main.tf:38

PASSED

CKV_AWS_18: S3 access logging

Cost Review

Cloud spend impact analysis

Infracost
Monthly cost estimate
PR cost delta
Expensive resource changes
Cost risks before merge
Resource type breakdown

Sample Output

Monthly cost breakdown

aws_instance.processor+$72.00
aws_s3_bucket.data_lake+$11.50
aws_rds_instance.db$0.00
PR Delta
+$84/month

Style & Quality

Terraform code quality

tflintterraform fmt
Formatting inconsistencies
Undescribed variables
Missing output descriptions
Deprecated syntax
Module conventions

Sample Output

fmt failed

modules/network/main.tf

inconsistent indentation

Warning

variables.tf:12 โ€” missing description

Warning

outputs.tf:5 โ€” missing description

AI Boundary

AI explains.
It does not decide.

โ€œ

Deterministic tools find the facts. AI explains them. Humans approve the change.

โ€

Deterministic Tools

Find the facts

tfsec, Checkov, Infracost, and tflint produce structured, reproducible output based on policy rules โ€” not AI guesses.

Security rule violations
Cost estimates
Lint errors
Format failures

AI Layer

Explains the impact

Claude reads scanner output and rewrites it as plain language โ€” what the risk is, why it matters, and how to fix it.

Plain-language summaries
Remediation steps
Severity context
Risk explanation

Human Reviewers

Make the final decision

Engineers see full context in one place and decide whether to approve, request changes, or block the PR.

Approve PR
Request changes
Block on severity
Override with context

The AI never invents findings. Every risk, cost change, and style issue traces back to a specific scanner rule and line of Terraform code.

How It Works

From PR to review comment
in one automated step

InfraGuard AI integrates directly into your GitHub Actions workflow with a single configuration file.

Step 1

Pull Request Opened

A developer opens or updates a PR with Terraform file changes

Step 2

Terraform Detected

GitHub Actions triggers automatically on .tf file changes

Step 3

Scanners Run

tfsec, Checkov, Infracost, and tflint execute in parallel

Step 4

Findings Normalized

Raw scanner JSON is parsed, deduplicated, and ranked by severity

Step 5

AI Explains Impact

AI summarizes each finding in plain language with remediation steps

Step 6

PR Comment Updated

One structured comment appears with all findings and context

GitHub Actions integration

One workflow file. Works on every PR automatically.

Demo

What the PR comment
actually looks like

A single, always-current comment. Every finding explained. Ready to act on.

acme-corp/infrastructure/#247
feat/new-storage-buckets
infraguard-aibotGitHub App
2 minutes ago ยท edited

๐Ÿ›ก๏ธ Terraform Review Summary

1 findings

Security

+$84/mo

Cost delta

3 issues

Style

Highaws-s3-block-public-acls

S3 bucket has public ACL enabled. This exposes all bucket contents to the internet.

modules/storage/main.tf:42

Fix: Set block_public_acls = true in aws_s3_bucket_public_access_block

Mediumaws-s3-encryption-customer-key

S3 bucket is not using server-side encryption with customer managed keys.

modules/storage/main.tf:38

Fix: Add server_side_encryption_configuration block with aws:kms algorithm

Mediumaws-iam-no-policy-wildcards

IAM policy contains wildcard action (*) which grants excessive permissions.

modules/iam/policy.tf:18

Fix: Replace wildcard with specific actions: s3:GetObject, s3:PutObject

Do not merge

1 high severity security finding requires remediation before merge. Public S3 bucket access poses significant data exposure risk.

1 check passed ยท Checkov CKV_AWS_18: S3 access logging enabled
Configurable Enforcement

Start with visibility.
Enforce when ready.

Begin in comment-only mode and ratchet up enforcement as your team builds confidence. No disruption. No big-bang adoption.

Comment Only

InfraGuard AI posts a review comment with all findings but never blocks a merge.

Blocks:Nothing โ€” visibility only
Best for:Starting out or onboarding teams who are new to infrastructure review.

workflow config

infraguard.yml
- uses: infraguard-ai/action@v1
  with:
    block_on: 'none'
    post_comment: true
gradually increase enforcement

Change enforcement level anytime with a single config update โ€” no workflow changes needed.

Try It Now

Analyze your Terraform plan
instantly, right here

Paste your terraform plan output or upload a plan file. Get an instant risk analysis โ€” no backend, no sign-up.

Drop your plan file or click to upload

Accepts .txt, .json, or raw terraform plan output

or
Use Cases

Built for the teams who
own infrastructure

Whether you manage one Terraform repo or one hundred, InfraGuard AI fits your existing workflow.

Platform Engineering

Standardize infrastructure review across all repos

  • Enforce consistent security policies at scale
  • Reduce review bottlenecks for platform teams
  • Track compliance across 50+ Terraform repos

Security Teams

Catch infrastructure risks before they reach production

  • Shift-left security with every PR
  • Automatic tfsec and Checkov analysis
  • Prioritized findings by severity level

DevOps Engineers

Review Terraform changes faster with less CI noise

  • One comment instead of 6 CI job logs
  • Direct file and line number references
  • Clear remediation suggestions per finding

FinOps Teams

Catch cost spikes before they hit your cloud bill

  • Infracost-powered monthly estimates on every PR
  • PR-level cost delta with resource breakdown
  • Block expensive changes before merge

Engineering Managers

Give teams context to approve infrastructure changes confidently

  • Non-experts can understand infrastructure impact
  • AI plain-language summaries of scanner output
  • Configurable enforcement from day one
No credit card required to start

Make Terraform reviews
faster, safer, and easier
to understand.

Install in minutes. Works with any GitHub repository using Terraform and GitHub Actions.

GitHub Actions nativeTerraform 0.12+No data storedFree to start