CICDCost.com is an independent comparison resource. Not affiliated with GitHub, GitLab, CircleCI, Buildkite, or any CI/CD vendor. Try our CI/CD calculator

AWS CodeBuild Pricing 2026: Cost Per Build Minute and Real-World Examples

CodeBuild is charged per-second with a minimum of 1 minute. No monthly subscription. Updated July 2026.

How CodeBuild Pricing Works

Pay per build minute, charged per second with a 1-minute minimum. No monthly fee or seat cost. First 100 build minutes per month free on general1.small or arm1.small instances only.

Instance typevCPURAMOSCost/min
general1.small23 GBLinux$0.005
general1.medium47 GBLinux$0.010
general1.large815 GBLinux$0.020
arm1.small23 GBLinux/Arm$0.0034
arm1.large815 GBLinux/Arm$0.0136
windows1.medium48 GiBWindows$0.018

CodeBuild vs GitHub Actions: When AWS Wins

CodeBuild general1.small ($0.005/min) is slightly cheaper than GitHub Actions Linux ($0.006/min). But the integration context matters.

CodeBuild wins when:
  • - Builds need VPC access to private AWS resources
  • - Deploying to AWS (ECS, Lambda, EKS) - IAM roles are native
  • - Pulling from ECR - no network egress charges
  • - Large ephemeral compute needed (general1.2xlarge with 72 vCPU)
  • - Already invested in AWS CodePipeline ecosystem
GitHub Actions wins when:
  • - Team is already on GitHub
  • - Marketplace integrations needed (20,000+ actions)
  • - macOS builds required
  • - Simpler billing (no separate service costs)
  • - Per-minute rate difference ($0.001/min) doesn't justify AWS complexity

CodeBuild vs CodePipeline: What You Are Actually Paying For

Common confusion: "code pipeline cost"

Many engineers search "code pipeline cost" and find confusing results because CodeBuild (the build engine) and CodePipeline (the workflow orchestrator) are separate services with separate pricing.

ServiceWhat it doesCost
AWS CodeBuildExecutes builds. Runs your build commands.$0.005-0.020/min
AWS CodePipelineOrchestrates workflow stages. Not needed if you use CodeBuild directly.$1/active pipeline/mo
Amazon ECRContainer image storage. Often used as artifact store.~$0.10/GB/mo
Amazon S3Build artifact storage.~$0.023/GB/mo

Total AWS CI Cost Example

A team using CodeBuild + CodePipeline + S3 artifacts + ECR image registry:

ServiceUsageMonthly cost
CodeBuild (general1.small)20,000 min/mo$100
CodePipeline5 active pipelines$5
S3 artifact storage~200 GB$5
ECR image storage~100 GB$10
Total~$120/mo

Comparable GitHub Actions setup for 20,000 minutes: (20,000 - 3,000) x $0.006 = $102 + $16 Team plan = $118/month. Similar total cost, simpler billing.

FAQ

How much does AWS CodeBuild cost per minute?
general1.small: $0.005/min (2 vCPU / 3 GB). general1.medium: $0.010/min (4 vCPU / 7 GB). arm1.small: $0.0034/min. Windows medium: $0.018/min. Rates are us-east-1. First 100 minutes/month free on small instances. Charged per second with 1-minute minimum. No monthly subscription.
What is the difference between CodeBuild and CodePipeline?
CodeBuild runs your builds (compile, test, package). CodePipeline orchestrates the stages (source trigger, build, test, deploy stages). CodePipeline costs $1/active pipeline/month. You can use CodeBuild without CodePipeline if you trigger builds directly from GitHub Actions, GitLab CI, or a webhook.
Is CodeBuild cheaper than GitHub Actions?
general1.small ($0.005/min) is slightly cheaper than GitHub Actions Linux ($0.006/min) - saving $1/1,000 minutes. This saving rarely justifies the added AWS service complexity unless you are already deeply invested in the AWS ecosystem or need VPC access, large compute instances, or native IAM integration with AWS services.

Updated 2026-06-11