aws-codebuild-docker-images
aws-codebuild-docker-images copied to clipboard
AWS CodeBuild [request] - Make it possible to create a hot standby Codebuild instance to reduce PROVISIONING time
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.
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.
I second this. This feature needs to be implemented
+1
+1
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.
CodeBuild's reserved capacity is launched as linked above. It doesn't support VPC yet, but that's planned in the upcoming weeks. Resolving.