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?

demandé il y a 2 ans756 vues
1 réponse
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
EXPERT
iwasa
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions