CodeBuild Pricing Calculator - EC2, Lambda, Docker & Sandbox

CodeBuild pricing calculator supporting On-Demand EC2, Lambda, Docker Image Server, and Sandbox builds. Compare compute types, estimate costs with free tier, and find the most cost-effective build configuration across all AWS regions.

+8 more

Frequently Asked Questions

What's the difference between EC2 and Lambda builds?

EC2 builds are charged per minute (rounded up to the nearest minute) and offer more compute options including Windows and GPU. Lambda builds are charged per second with sub-second billing, making them ideal for short, infrequent builds. Lambda also offers lower minimum costs for quick builds.

What's included in the CodeBuild Free Tier?

CodeBuild offers 100 build minutes per month with general1.small or arm1.small EC2 compute, and 6,000 build seconds per month with lambda.arm.1GB or lambda.x86-64.1GB. Unlike most AWS free tiers, this doesn't expire after 12 months - it's available to both new and existing customers indefinitely.

What is Docker Image Server and when should I use it?

Docker Image Server provides a persistent Docker daemon that maintains a shared layer cache across builds. AWS benchmarks show it can reduce Docker image build times by up to 98%. Use it when you have frequent Docker builds that share common base images or layers. Note: It doesn't qualify for free tier.

What is CodeBuild Sandbox?

Sandbox provides an interactive development environment for debugging and testing buildspecs. It's billed per second from when you start the sandbox until you terminate it. Ideal for troubleshooting build issues without repeatedly triggering full builds. Note: Sandbox doesn't qualify for free tier.

How much can I save with ARM/Graviton builds?

ARM (Graviton) builds are ~32% cheaper than x86 for EC2 builds and 50% cheaper for Lambda builds. If your build tools and dependencies support ARM, switching architectures is one of the easiest ways to reduce CI/CD costs with no code changes required.

Which instance sizes qualify for the free tier?

The EC2 free tier (100 build minutes/month) only applies to general1.small or arm1.small compute types. The Lambda free tier (6,000 build seconds/month) only applies to 1GB memory configurations. Other sizes are not eligible for free tier.

Are there additional charges for CodeBuild?

Yes, you may incur additional charges for S3 build artifact storage, CloudWatch Logs, and data transfer. Use our S3 Cost Calculator to estimate artifact storage costs. VPC-connected builds may also incur NAT Gateway or VPC endpoint charges.

Tip

Stop AWS bill surprises from happening.

Most infrastructure changes look harmless until you see next month's AWS bill. CloudBurn prevents this by analyzing the cost impact of your AWS CDK changes directly in GitHub pull requests, catching expensive mistakes during code review when fixes are quick, not weeks later when they're costly and risky.

See the setup guide to get started.