Skip to content

Upgrade UpdateRolesWithIDPFuncti funtions to node last LTS #14174

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

Open
CGarces opened this issue Apr 16, 2025 · 1 comment
Open

Upgrade UpdateRolesWithIDPFuncti funtions to node last LTS #14174

CGarces opened this issue Apr 16, 2025 · 1 comment
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage platform-push Issues related to `amplify push` question General question

Comments

@CGarces
Copy link

CGarces commented Apr 16, 2025

Amplify CLI Version

12.14.4

Question

How can I upgrade the functions amplify-*-UpdateRolesWithIDPFuncti-*?

That functions are internally created by amplify and not are part of the source code at git.

There is manual approach for amplify-login-*
https://docs.amplify.aws/gen1/react/tools/console/adminui/access-management/#troubleshooting

But nothing about amplify-*-UpdateRolesWithIDPFuncti-*

Related to #7469 the said

Closing this issue as the migration for the latest node version is covered as a part of the latest version of the CLI
But I can't see any reference of how LTS node versions are updated.

There is any migration process in the CLI or it's a manual process?

@CGarces CGarces added pending-triage Issue is pending triage question General question labels Apr 16, 2025
@ykethan
Copy link
Member

ykethan commented Apr 22, 2025

Hey @CGarces, thank you for reaching out. Wanted to provide some information on the Lambda function named amplify-*-UpdateRolesWithIDPFuncti-*.
The function is deployed as a Inline function by Amplify CLI when you run amplify add auth and is managed by Amplify CLI.
https://github.com/aws-amplify/amplify-cli/blob/dev/packages/amplify-provider-awscloudformation/resources/update-idp-roles-cfn.json
The function is to used to create and update the Auth and unAuth roles with trust policies to allow connection through the IDP.

  1. With the recent release Amplify CLI v13.0.0 the function does support node.js 22 as default runtime. You would need to update the Amplify CLI to latest by running amplify upgrade.
  2. Then invoke an update on the function, you could try invoking a update on the Auth resource by running amplify update auth. you may need to reselect existing auth options to trigger an update.
  3. Running amplify status to verify the change status or amplify build then verify the generated CloudFormation in the build folder.
  4. Run amplify push

Do let us if you require any additional clarification on the above information.

@ykethan ykethan added pending-response Issue is pending response from the issue author platform-push Issues related to `amplify push` labels Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response Issue is pending response from the issue author pending-triage Issue is pending triage platform-push Issues related to `amplify push` question General question
Projects
None yet
Development

No branches or pull requests

2 participants