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
        • Custom Config
        • AWS Credentials
      • Overview
      • Installation
        • Custom Config
        • AWS Credentials
    CloudBurn SDK

    Custom Configuration

    Configure CloudBurn SDK scans in code or from .cloudburn.yml. Load configuration files, create starter configs, and override rules and AWS service selection.

    CloudBurn configuration controls which rules run and which services are scanned. You can supply config as an inline object, load it from a file, or combine both.

    Load config from disk

    loadConfig() finds and loads the nearest .cloudburn.yml or .cloudburn.yaml file by walking up the directory tree from process.cwd(), stopping at the git root:

    import { CloudBurnClient } from '@cloudburn/sdk';
    
    const client = new CloudBurnClient();
    const config = await client.loadConfig();
    

    Provide an explicit path to skip the walk-up:

    const config = await client.loadConfig('/project/.cloudburn.yml');
    

    A directory holding both .cloudburn.yml and .cloudburn.yaml throws rather than picking one. In CI (when the CI environment variable is set to anything other than an empty string, 0, or false), the walk-up is skipped entirely and defaults are used, so pass an explicit path when you need config in CI.

    Inline config

    Pass a config object directly to scanStatic() or discover(). This takes precedence over any loaded config file:

    const result = await client.scanStatic('./infrastructure', {
      iac: {
        services: ['ec2', 'ebs'],
      },
    });
    

    The same pattern works for discovery scans:

    const result = await client.discover({
      config: {
        discovery: {
          services: ['ec2', 'rds'],
        },
      },
    });
    

    Override specific rules

    Enable only specific rules (all others are skipped):

    const result = await client.scanStatic('./iac', {
      iac: {
        enabledRules: ['CLDBRN-AWS-EBS-1', 'CLDBRN-AWS-EC2-1'],
        services: ['ebs', 'ec2'],
      },
    });
    

    Disable specific rules (all others still run):

    const result = await client.scanStatic('./iac', {
      iac: {
        disabledRules: ['CLDBRN-AWS-EC2-2'],
      },
    });
    

    Fail on severity

    Set failOn on a mode's config to turn active findings into a policy violation instead of just a result list. scanStatic() and discover() populate result.policy automatically whenever failOn is set for the mode being scanned:

    const result = await client.scanStatic('./iac', {
      iac: { failOn: 'medium' },
    });
    
    if (result.policy?.violated) {
      console.error(`${result.policy.qualifyingFindingCount} findings at or above 'medium' severity`);
      process.exitCode = 1;
    }
    

    failOn accepts 'high', 'medium', or 'low' — set to 'medium' to fail on high and medium findings while leaving low-severity findings out of the count. Omit failOn (the default) to skip policy evaluation entirely; result.policy stays undefined. To evaluate a threshold that differs from the loaded config, or to re-check a result you've filtered yourself, call evaluateScanPolicy() directly instead of relying on the automatic behavior.

    Merge file config with inline overrides

    Load from disk and apply targeted overrides without losing the rest of the config:

    const config = await client.loadConfig();
    
    const result = await client.scanStatic('./iac', {
      ...config,
      iac: {
        ...config.iac,
        services: ['ec2'],
      },
    });
    

    Config file format

    The SDK uses the same config format as the CLI. See Configuration for the full YAML schema.

    What's next

    CloudBurnClient ReferenceloadConfig(), scanStatic(), and discover() API docs
    AWS CredentialsSet up credentials for discovery scans
    RulesBrowse rule IDs to use with enabledRules/disabledRules
    Types ReferenceScanPolicyResult and SuppressedFinding types
    ← PreviousPackage ExportsNext →AWS Credentials

    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.