Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify studio is generating deprecated Node.js 16.x runtime Lambda functions #1085

Closed
mike1975-AWS opened this issue Jan 5, 2024 · 5 comments
Labels
login issues when logging into studio pending-release Code has been merged but pending release

Comments

@mike1975-AWS
Copy link

Hi,

Yesterday, I received a warning email from AWS regarding the support for Node.js v16 in AWS Lambda functions. A part of the message is posted below:

"We are contacting you as we have identified that your AWS Account currently has one or more AWS Lambda functions using the Node.js 16 runtime. We are ending support for Node.js 16 in Lambda on June 12, 2024. This follows Node.js 16 End-Of-Life (EOL) reached on September 11, 2023 [1]."

To pinpoint the issue, I created a new app from scratch with Amplify Studio (Gen 1). In the new app, I also added authentication through Amplify Studio. However, I discovered that Amplify Studio creates Lambda functions and sets the environment again to Node.js v16. :(

Is this a bug in Amplify Studio? Can we somehow address this issue and set the Node.js environment to the latest version (v18/v20)? Has someone faced and solved this issue so far?

@chrislrobert
Copy link

I've wasted an inordinate amount of time trying to resolve this on my own, and had thought the issue was in the app/CLI — so ended up posting an issue at aws-amplify/amplify-cli#13565. To be specific, these are the problematic Lambda functions in need of updating:

  1. amplify-login-custom-message-[ID number]
  2. amplify-login-create-auth-challenge-[ID number]
  3. amplify-login-define-auth-challenge-[ID number]
  4. amplify-login-verify-auth-challenge-[ID number]

I see those in both my dev and my production accounts, dating back to when I set up the Amplify environments. Really unsure how to resolve this...

@ykethan ykethan added login issues when logging into studio pending-release Code has been merged but pending release labels Feb 1, 2024
@ykethan
Copy link
Member

ykethan commented Feb 1, 2024

Hey @chrislrobert the Amplify Studio informed me the fix for this is currently inflight and should provide an update here once this is released.

@chrislrobert
Copy link

chrislrobert commented Feb 1, 2024 via email

@ykethan
Copy link
Member

ykethan commented Feb 6, 2024

@chrislrobert @mike1975-AWS hey folks, the Studio login functions have been updated. For the changes to take effects, you will need to disable and re-enable studio. Refer to documentation providing detailed steps.

@ykethan ykethan closed this as completed Feb 6, 2024
Copy link

github-actions bot commented Feb 6, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
login issues when logging into studio pending-release Code has been merged but pending release
Projects
None yet
Development

No branches or pull requests

3 participants