C3X Documentation

C3X is a cloud cost estimation tool that analyzes your Terraform configurations and predicts infrastructure costs before you deploy. It supports AWS, Azure, and Google Cloud with over 1,100 resource types and integrates directly into your CI/CD pipelines.

Quick Install

brew install c3xdev/tap/c3x

Key Features

  • Quick Start: Install C3X and run your first cost estimate in under five minutes.
  • CLI Reference: Complete reference for every command, flag, and output format.
  • CI/CD Integration: Add cost estimation to GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines, Atlantis, and Spacelift.
  • Usage File Format: Define expected usage for variable-cost resources like Lambda, S3, and data transfer.
  • Self-Hosted & Offline: Run a private pricing API or work completely offline for air-gapped environments.
  • Supported Resources: Browse the 1,100+ Terraform resources C3X can price across AWS, Azure, and Google Cloud.

Next Steps

New to C3X? Start with the Quick Start guide. If you already have C3X installed, jump straight to the CLI Reference or set up CI/CD Integration for your team.

For air-gapped or regulated environments, see the Self-Hosted & Offline guide to run everything on your own infrastructure with zero external network calls.

Examples

The examples directory in the repository contains ready-to-run projects:

  • examples/terraform/: EC2 + Lambda with usage file and inline comments showing how to compare costs
  • examples/terragrunt/: Multi-environment setup (dev/prod) with shared modules
  • examples/cloudformation/: AWS CloudFormation template