AWS CodeBuild
User Guide (API Version 2016-10-06)

The procedures in this guide support the new console design. If you choose to use the older version of the console, you will find many of the concepts and basic procedures in this guide still apply. To access help in the new console, choose the information icon.

Build Environment Compute Types

AWS CodeBuild provides build environments with the following available memory, vCPUs, and disk space:

Compute type computeType value Memory vCPUs Disk space Operating system
build.general1.small BUILD_GENERAL1_SMALL 3 GB 2 64 GB Linux
build.general1.medium BUILD_GENERAL1_MEDIUM 7 GB 4 128 GB Linux, Windows
build.general1.large BUILD_GENERAL1_LARGE 15 GB 8 128 GB Linux, Windows


For custom build environment images, AWS CodeBuild supports Docker images up to 20 GB uncompressed in Linux and 50 GB uncompressed in Windows, regardless of the compute type. To check your build image's size, use Docker to run the docker images REPOSITORY:TAG command.

To choose one of these compute types:

You can use Amazon EFS to access more space in your build container. For more information, see Amazon Elastic File System Sample for AWS CodeBuild. If you want to manipulate container disk space during a build, then the build must run in privileged mode.