amplify-passwordless-sms-auth icon indicating copy to clipboard operation
amplify-passwordless-sms-auth copied to clipboard

Creation fails because of nodejs12.x deprecated

Open sankalpmukim opened this issue 2 years ago • 2 comments

I am mostly a beginner so if I am doing anything wrong or have not provided enough information so please ask. This is important for my job and I am already beyond deadline so any help and insight will be greatly appreciated.

I am trying to deploy this(https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:552623489034:applications~amplify-passwordless-sms-auth) stack in the ap-southeast-1 region. I change the region after clicking on the given link from the console's top right.

Then after giving a name and deploying, I get the same issue again and again (tried twice).

As I have attached in the screenshot, this function creation is the first to fail in the stack. After that the entire stack is rolledback. Please guide as to how to move forward.

Screenshot from 2023-06-08 12-08-22

sankalpmukim avatar Jun 08 '23 06:06 sankalpmukim

Hey! As error stated, Node12 support has been dropped for lambda. You have to change the run time to 16.x or 18.x or 20.x whatever you think is ok.

Change in https://github.com/mobilequickie/amplify-passwordless-sms-auth/blob/master/backend/template.yaml at line 42

Runtime: nodejs12.x to Runtime: nodejs18.x and then deploy.

imdkbj avatar Jun 09 '23 05:06 imdkbj

When will the template be fixed/updated with the latest supported Node version?

romoore avatar Jan 19 '24 16:01 romoore