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.

질문됨 일 년 전408회 조회
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
답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠