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?

feita há 2 anos756 visualizações
1 Resposta
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
ESPECIALISTA
iwasa
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas