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?

gefragt vor 2 Jahren756 Aufrufe
1 Antwort
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
EXPERTE
iwasa
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen