AWS CodeBuild Now Supports Local Caching

Posted on: Feb 21, 2019

AWS CodeBuild now allows you to cache artifacts locally on the build host for cheaper and faster reuse. Previously, you could only use Amazon S3 as the cache to store your artifacts between builds. Though S3 caching allows the reuse of artifacts, it comes with a network cost and latency due to the associated file transfer.

To enable locally cached builds, select "Local" as the caching method. There are three modes you may select from depending on your use case: Source, Custom, and Docker Layer (currently only available for Linux builds). After a build, AWS CodeBuild maintains the cache for some time in anticipation of another build.

To learn more about using local caching with AWS CodeBuild, visit our documentation or our blog. To learn more about how to get started with CodeBuild, visit our product page or the AWS CodeBuild console.

For a full list of AWS Regions where AWS CodeBuild is available, please visit our Region table.