How to deploy a Node app to AWS Lambda without errors?

How to deploy a Node app to AWS Lambda without errors?

Nidhin_Radh
Shopify Partner
1 0 0

Hi,

 

Has anyone here tried deploying Shopify Nodejs app to AWS Lambda?

I was able to install the app to Lambda but when I open the App in my store I am getting the following error in the browser console,

"my_app_url/index.jsx net::ERR_ABORTED 500 (Internal Server Error)"

 

I want to know if the official template provided by Shopify supports a serverless infrastructure like AWS Lambda?

 

Also, is it possible to separate the frontend code from the template and deploy it with a different URL? 

 

NB: My code works when I install it in AWS ECS, but the client wants this to be deployed in lambda.

 

TIA.

Reply 1 (1)

jeff0723
Shopify Partner
36 1 7

Lambda is supposed to be serverless. This means your api can only access other resources through api. But for the frontend code to render you need to have your react app build and return the code whenever someone calls the related api. I think it's the frontend part cause you internal error.

Indie developer.
Seeking to solve merchants' problems.