CodePipeline with CodeDeploy using Lambda NodeJS does not receive Github Source

0

I have a react git repo on github.

I've created a pipeline, sourced from Github. When I pipe it directly to an S3 deploy, everything works fine.

When I add a build stage, based on a lambda/NodeJS image, it cannot find the input source files from github. I am doing more research but after the build failed due to:

DOWNLOAD_SOURCE	| Failed | INFO: YAML file does not exist

I created my own buildspec as part of the code build. I just put in a "ls -R ../.." and I got back unexpected output as shown below.

[Container] 2023/11/20 16:08:11.003334 YAML location is /tmp/codebuild/readonly/buildspec.yml
[Container] 2023/11/20 16:08:11.003657 Processing environment variables
[Container] 2023/11/20 16:08:11.018688 Moving to directory /tmp/codebuild/output/src2799/src/s3/01
[Container] 2023/11/20 16:08:11.180017 Running command ls -R ..
..:
01
03

../01:
rao0cYd

../03:
executor
start_cb_mce_entrypoint.sh

I did a separate run and got:

[Container] 2023/11/20 15:45:02.693251 Running command ls -la
total 500
drwxr-xr-x 2 sbx_user1051 990   4096 Nov 20 15:45 .
drwxr-xr-x 4 sbx_user1051 990   4096 Nov 20 15:45 ..
-rw-rw-r-- 1 sbx_user1051 990 501037 Nov 20 15:45 O7jpRjO

When I switch to CodeBuild using an EC2 instance it sort of works. Is the Lambda version of CodeBuild broken?

  • i checked the file listed above (it exists in S3 as well) - and it looks like it is just the zip file. It seems like the zip file is not being expanded and so I cannot read the buildspec from it. Why is the zipfile not expanded with the repo contents?

질문됨 6달 전141회 조회
1개 답변
1

Hello,

Hope you are safe and doing well.

I understand that you are getting below error because zip file is not being expanded.

++++ DOWNLOAD_SOURCE | Failed | INFO: YAML file does not exist ++++

I tried replicating the behaviour at my end but I was unable to replicate the issue or observed the same error .

Hence I will request you to please try one more time and do reach out to us with opening a support case with AWS using this link : https://console.aws.amazon.com/support/home#/case/create

We will be more than happy to answer your query.

Stay Safe and Take care !

Wishing you AWSome days ahead.

AWS
지원 엔지니어
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠