Code build cost reduction

0

We use amazon code build to build the code from code commit and generate artifacts for deployment. It looks like it is spinning a new machine every time and executes the build, the cost for the code build is increasing for us. Are there any way to reduce the cost for code build.

We use gradle for building java+kotlin packages and react & js libraries using nodejs and npm.

已提問 1 年前檢視次數 409 次
2 個答案
0

Please see these tips that should help you reduce the cost of using Amazon CodeBuild and optimize your build process:

  • Run the 'aws codebuild batch-get-projects' command to determine which builds take the most time to complete. You can then optimize these builds by reducing the number of build dependencies or using a larger build environment.

  • Look in to Amazon CloudWatch to monitor your build usage patterns and identify opportunities to optimize your builds.

  • Look in to the AWS CodeBuild Concurrent Builds feature to run multiple builds concurrently, which can help you take advantage of idle capacity in your build environment.

  • Using a build environment that is shared by multiple builds, such as the 'Managed image' option (Use an image managed by AWS CodeBuild), can help reduce costs.

Hope this helps.

AWS
已回答 1 年前
0

In addition to the above points,

Use Codebuild Caching.

Try to pre-pack your requirements inside a managed docker image, and use that with Codebuild, this will ensure provisioning and installation time is reduced as you already have what you need to be baked inside the runtime codebuild container.

HTH.

profile picture
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南