AWS codebuild failed at DOWNLOAD_SOURCE phase

0

I am attempting to create a CICD pipeline using AWS CodePipeline to deploy magento to an EC2 instance and terraform to provision the infrastructure on AWS. After running the script, it fails at DOWNLOAD_SOURCE phase during the build stage. After much enquiry I realised it has to do with VPC settings. In the AWS documentation it says to use private subnet ids and present the arn instead of the just the subnet id. I have done all that but it is still failing. What do I do to resolve this?

已提问 2 年前756 查看次数
1 回答
0

Hi.

If you are running CodeBuild in VPC, you need to secure an access route to the source repository in one of the following ways.

  • Run in public subnet
  • Run in a private subnet that can be outbounded from NAT GATEWAY
  • Configure VPC endpoints

See also the following articles.

profile picture
专家
iwasa
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则