CloudBurn Logo
CloudBurnHome
  • Cost estimation

    • AWS Simple Pricing CalculatorEstimate your AWS stack
    • IaC Cost EstimatorReview costs before merge

    Cost analysis

    • AWS Cost TreeSee where your spend went

    Cost Optimization

    • Unused resourcesFind resources to remove
    • Resource efficiencyImprove what you keep
    • Commitment savingsReview plans and reservations
    • Cost GovernanceBudgets, alerts, and tags

    Product

    • RoadmapWhat's coming next
    • ChangelogProduct updates
    • DocsGuides and reference
    • AboutWhy CloudBurn exists
  • Pricing
  • Blog
  • Tools
Join the CloudBurn Discord community
Join the waitlistWaitlist
Join the CloudBurn Discord community1.8k
Navigation
    • Overview
    • Installation
    • Configuration
    • GitHub Action
    • MCP Plugin
    • VS Code Extension
      • Scan IaC Files
      • Discover AWS
      • scan
      • discover
      • config
      • rules list
      • completion
      • estimate
      • Exit Codes
      • Output Formats
      • CI/CD Integration
      • Resource Explorer Setup
    • Overview
    • Connect an AWS Account
    • Set Up PR Cost Estimation
    • Plans and Billing
    • Workspaces and Members
    • AWS Cost Tree
      • Usage Assumptions
      • Examples
      • Unused Resources
      • Resource Efficiency
      • Commitment Savings
      • Cost Governance
    • Overview
    • Understanding Rules
      • CloudFront
      • CloudTrail
      • CloudWatch
      • AWS Config
      • Cost Explorer
      • Cost Guardrails
      • Cost Optimization Hub
      • DynamoDB
      • EBS
      • EC2
      • ECR
      • ECS
      • EKS
      • ElastiCache
      • ELB
      • EMR
      • KMS
      • Lambda
      • RDS
      • Redshift
      • Route 53
      • S3
      • SageMaker
      • Secrets Manager
      • Tagging
    • Overview
    • Installation
      • Static IaC Scan
      • Discovery Scan
      • CloudBurnClient
      • Types
      • Package Exports
      • Custom Config
      • AWS Credentials
    • Overview
    • Installation
    • Configuration
    • GitHub Action
    • MCP Plugin
    • VS Code Extension
      • Scan IaC Files
      • Discover AWS
      • scan
      • discover
      • config
      • rules list
      • completion
      • estimate
      • Exit Codes
      • Output Formats
      • CI/CD Integration
      • Resource Explorer Setup
    • Overview
    • Connect an AWS Account
    • Set Up PR Cost Estimation
    • Plans and Billing
    • Workspaces and Members
    • AWS Cost Tree
      • Usage Assumptions
      • Examples
      • Unused Resources
      • Resource Efficiency
      • Commitment Savings
      • Cost Governance
    • Overview
    • Understanding Rules
      • CloudFront
      • CloudTrail
      • CloudWatch
      • AWS Config
      • Cost Explorer
      • Cost Guardrails
      • Cost Optimization Hub
      • DynamoDB
      • EBS
      • EC2
      • ECR
      • ECS
      • EKS
      • ElastiCache
      • ELB
      • EMR
      • KMS
      • Lambda
      • RDS
      • Redshift
      • Route 53
      • S3
      • SageMaker
      • Secrets Manager
      • Tagging
    • Overview
    • Installation
      • Static IaC Scan
      • Discovery Scan
      • CloudBurnClient
      • Types
      • Package Exports
      • Custom Config
      • AWS Credentials
Loading documentation page
CloudBurn Logo
CloudBurn

Open-source AWS cost checks and an upcoming platform for cost estimation, optimization, and governance.

1.8k

Product

  • Pricing
  • Roadmap
  • Changelog
  • About
  • Blog
  • Waitlist
  • Docs
  • Contact

Free Tools

  • EC2 Pricing Calculator
  • S3 Pricing Calculator
  • Bedrock Pricing Calculator
  • Fargate Pricing Calculator
  • RDS Pricing Calculator
  • ECS Pricing Calculator
  • Aurora Pricing Calculator
  • All AWS pricing calculators →

CloudBurn Platform · early 2027

Price changes before you deploy. Fix the waste after.

Join now for 30% off, for as long as you keep your plan.

Join the waitlist

Two emails a month at most. Unsubscribe anytime. By signing up you agree to the privacy policy.

CloudBurn © 2026 | Terms & Privacy

Built with ❤️ by Towards the Cloud

  • Pricing
  • Blog
  • Tools
      • Overview
      • Installation
      • Configuration
      • GitHub Action
      • MCP Plugin
      • VS Code Extension
        • Scan IaC Files
        • Discover AWS
      • Overview
      • Installation
      • Configuration
      • GitHub Action
      • MCP Plugin
      • VS Code Extension
        • Scan IaC Files
        • Discover AWS
    CloudBurn CLI

    Quickstart: Scan IaC Files

    Run your first CloudBurn IaC scan on Terraform or CloudFormation files. Install the CLI, scan local infrastructure, and review findings before AWS deployment.

    This tutorial walks you through running your first CloudBurn scan against local Terraform or CloudFormation files.

    Step 1: Install CloudBurn

    If you haven't installed the CLI yet, see Installation.

    npm install --global cloudburn
    

    Step 2: Navigate to your IaC directory

    Change into the directory that contains your Terraform (.tf) or CloudFormation (.json, .yaml, .yml) files:

    cd ./infrastructure
    

    Step 3: Run the scan

    Run CloudBurn scan against the current directory:

    cloudburn scan
    

    Or point it at a specific path:

    cloudburn scan ./path/to/iac
    

    CloudBurn auto-detects file types — you don't need to specify whether you're using Terraform or CloudFormation.

    Step 4: Read the output

    By default, CloudBurn outputs a table of findings. Each row represents one finding:

    +----------+------------------+----------+--------+---------+---------------------+-------------------------+------+--------+----------------------------------------------------+
    | Provider | RuleId           | Severity | Source | Service | ResourceId          | Path                    | Line | Column | Message                                            |
    +----------+------------------+----------+--------+---------+---------------------+-------------------------+------+--------+----------------------------------------------------+
    | aws      | CLDBRN-AWS-EBS-1 | medium   | iac    | ebs     | aws_ebs_volume.main | modules/storage/main.tf | 12   | 1      | EBS volumes should use current-generation storage. |
    +----------+------------------+----------+--------+---------+---------------------+-------------------------+------+--------+----------------------------------------------------+
    

    Column meanings:

    ColumnDescription
    ProviderCloud provider (aws)
    RuleIdThe rule that triggered (use this to look up details in Rules)
    SeverityRelative cost impact: high, medium, or low
    SourceScan mode that produced the finding, iac here
    ServiceAWS service category (e.g. ebs, ec2, s3)
    ResourceIdThe Terraform resource address or CloudFormation logical ID
    PathFile path where the resource is defined
    LineLine number in the file
    ColumnColumn number in the file
    MessageWhat CloudBurn found and why it matters

    Column widths follow your terminal, and columns with no data for the run are dropped. Discovery findings fill in other columns instead, such as Region and AccountId. See Finding columns.

    Step 5: Filter by service

    To scan only specific AWS services:

    cloudburn scan --service ebs
    

    Multiple services:

    cloudburn scan --service ebs,ec2
    

    Step 6: Use JSON output

    For machine-readable output — useful for scripts or CI pipelines:

    cloudburn --format json scan ./iac
    

    Pipe to jq to extract specific fields:

    cloudburn --format json scan ./iac | jq '.providers[].rules[]'
    

    Step 7: Use exit codes for CI

    Pass --exit-code to make the command exit with code 1 when any active finding exists. This lets you fail CI builds:

    cloudburn scan --exit-code
    

    To fail CI only above a severity threshold instead, use --fail-on:

    cloudburn scan --fail-on high
    

    Exit codes:

    CodeMeaning
    0No active findings, or no policy gate was passed
    1An active finding satisfies --exit-code or --fail-on
    2Runtime error or usage error

    What's next

    RulesUnderstand what each rule checks
    CI/CD IntegrationRun CloudBurn in GitHub Actions or GitLab CI
    cloudburn scanFull reference for scan flags
    ← PreviousVS Code ExtensionNext →Discover AWS

    CloudBurn Platform · early 2027

    Price changes before you deploy. Fix the waste after.

    Join now for 30% off, for as long as you keep your plan.

    Join the waitlist

    Two emails a month at most. Unsubscribe anytime. By signing up you agree to the privacy policy.