Whenever I start AWS CodeBuild I get this type of error every time. please help.
DOWNLOAD_SOURCE Failed 3 mins, 2 secs
Get https://github.com/themithunbiswas/test-repo.git/info/refs?service=git-upload-pack: dial tcp 192.30.253.113:443: i/o timeout
Whenever I start AWS CodeBuild I get this type of error every time. please help.
DOWNLOAD_SOURCE Failed 3 mins, 2 secs
Get https://github.com/themithunbiswas/test-repo.git/info/refs?service=git-upload-pack: dial tcp 192.30.253.113:443: i/o timeout
The error message indicates that your build doesn't have internet connectivity. If you are setting up a project with VPC config, please check your VPC settings. You can refer to this documentation .Troubleshooting Your VPC Setup section to verify your VPC settings. You may also click the Validate VPC Settings button in CodeBuild's console to check your VPC settings.
Another most likely scenario is your codebuild does not have appropriate permission for accessing code which is either in codecommit,git or s3, if you use wizard to create this it will automatically grant appropriate permission to it.
Hope this helps!
For a repository in codecommit the NO VPC setting worked fine for me
For those arriving here via Google and finding the approved answer doesn't help:
In my case I found the "Source version" setting seen in the "Edit Source" had somehow become blanked out, despite full automated definition via CloudFormation. That in turn led to a wrong branch being checked out, and having the buildspec.yaml in a different location than expected.
if you have defined vpc in codebuild environment settings then select private subnets. It is recommended to use private subnets in this document. Check the security groups selected, it should allow to fetch your code from the source like Amazon S3 or bitbucket