aws-samples / aws-serverless-ecommerce-platform

Serverless Ecommerce Platform is a sample implementation of a serverless backend for an e-commerce website. This sample is not meant to be used as an e-commerce platform as-is, but as an inspiration on how to build event-driven serverless microservices on AWS.
MIT No Attribution
1.1k stars 370 forks source link

Build & deploy failing when use using aws developer tools #181

Closed srilives closed 2 years ago

srilives commented 2 years ago

the build & deploy does not work correctly when using aws developer tools codebuild & codedeploy. Is there anything That I am missing

thanks in advance, Sri

nmoutschen commented 2 years ago

Hey @srilives !

What errors are you getting when you are using CodeBuild and CodeDeploy?

srilives commented 2 years ago

[Container] 2021/10/23 10:16:01 Running command make requirements npm-install make: *** No rule to make target 'requirements'. Stop.

[Container] 2021/10/23 10:16:01 Command did not exit successfully make requirements npm-install exit status 2 [Container] 2021/10/23 10:16:01 Phase complete: PRE_BUILD State: FAILED

[Container] 2021/10/23 10:16:01 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: make requirements npm-install. Reason: exit status 2

nmoutschen commented 2 years ago

Did you run the make command from the root folder of this repository?

Since the requirements target is defined in the root Makefile, it should work fine.

nmoutschen commented 2 years ago

Closing this issue now. Feel free to recreate a new one if you face similar issues!