Why AWS CodeBuild?
AWS CodeBuild uses simple pay-as-you-go pricing. There are no upfront costs or minimum fees. You pay only for the resources you use. You are charged for compute resources based on the duration it takes your build to run. The rate depends on the selected compute type.
AWS Pricing Calculator
Calculate your CodeBuild and architecture cost in a single estimate.
On-demand Amazon EC2 pricing
Build duration
Build duration is calculated in minutes, from the time you submit your build until your build is terminated, rounded up to the nearest minute.
Compute types
CodeBuild offers compute instance types with different amounts of memory and CPU. Charges vary by the compute instance type that you choose for your build.
On-demand AWS Lambda pricing
Build duration
Build duration is calculated in seconds, from the time you submit your build until your build is terminated, rounded up to the nearest second.
Compute types
CodeBuild offers compute types with different amounts of memory. Charges vary by the compute type that you choose for your build.
Reserved capacity Amazon EC2 pricing
Instance pricing per minute
Instance pricing is calculated in minutes, from the time you submit a request for a new instance until your instance is terminated, rounded up to the nearest minute. Each instance has a minimum usage charge of 60 minutes.
Compute types
AWS CodeBuild offers compute instance types with different amounts of memory and CPU. Charges vary by the compute instance type that you choose for your fleet.
Mac reserved instances
Each Mac instance has a minimum usage charge of 24 hours before you can release the reserved instance.
Managed Network Access Control List
Managed Network Access Control List (NACL) allows you to route network traffic through a CodeBuild managed proxy. You can enable NACL on reserved capacity fleets to control a list of allowed or denied network rules. Managed proxy is charged per minute on each fleet where NACL is enabled. You will continue to incur charges on a NACL-enabled fleet until you disabled it.
AWS Free Tier
The CodeBuild AWS Free Tier includes 100 total build minutes per month with the general1.small or arm1.small instance types using on-demand Amazon EC2. Using on-demand Lambda, the CodeBuild AWS Free Tier includes 6,000 total build seconds per month with the lambda.arm.1GB or lambda.x86-64.1GB compute types. Reserved capacity EC2 does not offer an AWS Free Tier. The CodeBuild AWS Free Tier does not automatically expire at the end of your 12-month AWS Free Tier term. It is available to new and existing AWS customers.
Additional charges
You may incur additional charges if your builds transfer data or use other AWS services. For example, you may incur charges from Amazon CloudWatch Logs for build log streams, Amazon Simple Storage Service (Amazon S3) for build artifact storage, and AWS Key Management Service (AWS KMS) for encryption. You may also incur additional charges if you use CodeBuild with AWS CodePipeline.