AWS Codepipeline LAB deployment stage is failed(Having successful status of source and Build stage result)

I am trying to implement the LAB in course - AWS CodePipeline (CI/CD Pipeline). In last lab ( Lab 3 : Create 4 Stage Pipeline) the deployment phase is failing with an error of “nosudo: npm: command not found” for which I tried to install npm and node manually on instance but for that to SSH the instance I dont have the permissions. I have attached the screenshots of the events of Code deploy.


This image consist the events of codedeploy

Which step of the lab did this occur on? TBH, I ran out of time on the last step, but it does appear things worked until that point.

@rob_kodekloud Its 13 number step on Lab 3 : Create 4 Stage Pipeline where we need to create CodePipeline wherein we require build 3 stages.

Hi @Kode1808 @kodekloud.poncho955 could you please help me in this issue

Hello @rob_kodekloud could you please help me in this issue.

I have gone through this step probably 3 times at this point, and I have not seen this problem, nor have I seen any need in the lab to:

tried to install npm and node manually on instance but for that to SSH the instance I dont have the permissions. I have attached the screenshots of the events of Code deploy.

Try the lab again, making use of the Solutions and Hints tabs. I’m not sure what you’re getting wrong, but at this point, I’m reasonably sure it is not a defect in the lab itself.

Ah, NOW I see what you’re talking about. The build fails, and this is buried in the build logs. I’ll need to run the lab again to even report this again (I’ve asked the lab team to increase the lab lifetime to 90 minutes as well).

I’m not duplicating your problem this time. Step 13 worked; the logs look clean.

The lab, given its 60 minute time limit, is tough to get right. But it seems like the build does work.


Hi @rob_kodekloud I tried it again with solutions and still getting same issue.


Where as we can see all the check steps are completed but I just want to make the deployment stage successful. With this status we can move to 14 number step but before moving ahead want to run the complete pipeline successful


Only deploy stage is failing @rob_kodekloud

Yes this 13 steps completes on the lap page but when we check the pipeline the deployment stage fails