aws-codebuild-docker-images icon indicating copy to clipboard operation
aws-codebuild-docker-images copied to clipboard

AWS CodeBuild [request] - Make it possible to create a hot standby Codebuild instance to reduce PROVISIONING time

Open xXPOLYGONXx opened this issue 2 years ago • 5 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request

  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request

Since CodeBuild executes builds in containers which run on single-tenanted Amazon EC2 instances within a service-managed VPC and these instances will always be newly provisioned before running codebuild the provisioning times exceed 90 seconds per run. This may not be problematic for a single Codebuild Project, but when using Codepipeline, exspecially CDK Pipelines with self mutation, there are possibly many Codebuild-Steps in a single Pipeline. So the provisioning times add up rather quickly.

The proposal is to implement a way for creating dedicated Codebuild instances for your own VPC (for example on ec2) which can be used as a kind of hot-standby for your own Codebuild Projects. Because these will not be deleted after running and are already configured in your VPC it should be possible to reduce the provisioning time by a good amount. The only drawback would be extra cost for reserving more resources, but that could be price some people are willing to pay for faster builds. Maybe this could be implemented similar to the local build Feature of Codebuild.

xXPOLYGONXx avatar May 13 '22 12:05 xXPOLYGONXx

yeah, the codebuild provisioning time is super unstable, even with latest curated image. Sometimes 5 sec, sometimes 240 seconds. I guess AWS randomly pick EC2 to run the job, and if the EC2 happen to be the first time using the image, it takes long.

MacHu-GWU avatar Jul 22 '22 04:07 MacHu-GWU

I second this. This feature needs to be implemented

prashantb1980 avatar Apr 27 '23 09:04 prashantb1980

+1

prashantb1980 avatar Apr 27 '23 09:04 prashantb1980

+1

cobar79 avatar Dec 13 '23 15:12 cobar79

Please check out the Reserved Capacity feature to see if it could benefit your use case. https://aws.amazon.com/about-aws/whats-new/2024/01/aws-codebuild-reserved-capacity/#:~:text=AWS%20CodeBuild%20now%20supports%20reserved,%2Dto%2Ddeploy%20software%20packages.

taoyong-ty avatar Jan 25 '24 08:01 taoyong-ty

CodeBuild's reserved capacity is launched as linked above. It doesn't support VPC yet, but that's planned in the upcoming weeks. Resolving.

subinataws avatar Apr 11 '24 04:04 subinataws