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?

asked 5 months ago133 views
1 Answer
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
SUPPORT ENGINEER
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions