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?

posta 2 anni fa756 visualizzazioni
1 Risposta
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
ESPERTO
iwasa
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande