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

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

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

Note

For custom build environment images, 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 a compute type:

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