Overview
CloudBurn is a GitHub App that analyzes your infrastructure changes and provides cost estimates directly in your Pull Requests. It works seamlessly with both AWS CDK and Terraform projects, helping your team make informed decisions about infrastructure costs before deployment.
Prerequisites
Before installing CloudBurn, you need to have one of the following GitHub Actions configured in your repository:
For AWS CDK Projects
Install and configure the AWS CDK Diff GitHub Action to generate CDK diffs on Pull Requests:
- Install AWS CDK Diff GitHub Action — Complete setup guide with prerequisites, permissions, and workflow configuration
- Usage Examples — Practical examples for different scenarios
- Configuration Reference — All available inputs and outputs
For Terraform Projects
Install and configure the Terraform Plan GitHub Action to generate Terraform plans on Pull Requests:
- Install Terraform Plan GitHub Action — Complete setup guide with prerequisites, permissions, and workflow configuration
- Usage Examples — Practical examples for different scenarios
- Configuration Reference — All available inputs and outputs
Installation Steps
1) Install CloudBurn from GitHub Marketplace
- Visit the CloudBurn GitHub Marketplace page
- Click "Install it for free" or "Set up a plan"
- Choose whether to install CloudBurn for:
- All repositories in your organization (recommended for teams)
- Only select repositories (for testing or specific projects)
- Click "Install" to authorize CloudBurn
2) Grant Repository Permissions
CloudBurn requires the following permissions to function:
-
Read access to:
- Contents (to read repository files)
- Pull requests (to read PR information)
-
Write access to:
- Pull requests (to post cost analysis comments)
These permissions are automatically configured during installation.
3) Verify Installation
After installation, CloudBurn will automatically start analyzing Pull Requests that contain infrastructure changes:
- Create a test Pull Request with infrastructure changes
- Wait for your CDK diff or Terraform plan GitHub Action to complete
- CloudBurn will automatically post a cost analysis comment within a few seconds
The comment will show:
- Estimated monthly cost changes
- Cost breakdown by resource type
- Comparison between current and proposed infrastructure costs
What Happens Next
Once CloudBurn is installed:
- Automatic Analysis: CloudBurn monitors your Pull Requests for infrastructure changes
- Cost Estimates: When it detects a CDK diff or Terraform plan, it analyzes the changes and calculates cost impacts
- PR Comments: Cost analysis is posted as a comment directly on the Pull Request
- Updates: CloudBurn automatically updates its comment when new commits are pushed to the PR
Configuration Options
CloudBurn works out of the box with default settings, but you can customize its behavior:
Multi-Environment Support
If you're using custom headers in your CDK diff or Terraform plan workflows, CloudBurn will post separate cost analyses for each environment:
# Example: Using headers for multi-environment setups
- name: Post CDK Diff Comment
uses: towardsthecloud/aws-cdk-diff-pr-commenter@v1
with:
diff-file: dev-diff.txt
header: "Dev Environment" # CloudBurn will recognize this
aws-region: us-east-1
Repository-Specific Settings
CloudBurn automatically adapts to your repository structure and workflow configuration. No additional configuration files are needed.
Troubleshooting
CloudBurn comment not appearing
Symptoms: Pull Request has infrastructure changes but no cost analysis comment.
Solutions:
- Verify the CDK diff or Terraform plan GitHub Action completed successfully
- Check that the diff/plan output is properly formatted
- Ensure CloudBurn has permissions to access the repository
- Verify CloudBurn is installed for the correct repository or organization
Cost estimates seem incorrect
Symptoms: Cost analysis shows unexpected values.
Solutions:
- Review the infrastructure changes in your diff/plan output
- Verify AWS region is correctly specified in your workflow
- Check that resource types are supported by CloudBurn
- Note that some resources may not have cost estimates available
Multiple cost analysis comments
Symptoms: Multiple CloudBurn comments appear on the same PR.
Solutions:
- This is expected behavior for multi-environment setups with custom headers
- Each header creates a separate cost analysis comment
- To reduce comments, use a single workflow without headers
Uninstalling CloudBurn
To remove CloudBurn from your repositories:
- Go to your GitHub organization or account settings
- Navigate to Settings > GitHub Apps
- Find CloudBurn in the list
- Click Configure
- Scroll down and click Uninstall or adjust repository access
Support
Need help with CloudBurn? Here's how to get support:
- GitHub Action Issues: If you're having issues with the CDK diff or Terraform plan actions, visit their respective documentation pages
- CloudBurn App Issues: For issues specific to cost analysis or the CloudBurn app itself, contact us through the GitHub Marketplace page
Next Steps
- Review your first cost analysis on a Pull Request
- Explore AWS CDK Diff examples for advanced CDK workflows
- Explore Terraform Plan examples for advanced Terraform workflows
- Share CloudBurn with your team to improve infrastructure cost visibility