Two lambda functions created after setting up default auth
Note: If your question is regarding the AWS Amplify Console service, please log it in the AWS Amplify Console repository These are the steps I performed for setting up Auth:
Do you want to use the default authentication and security configuration? Default configuration
Warning: you will not be able to edit these selections.
How do you want users to be able to sign in? Username
Do you want to configure advanced settings? No, I am done.
And two lambda functions created:
amplify-collectbetter-dev-140-UserPoolClientLambda-WDwkpxFH8G2Mamplify-collectbetter-dev-UpdateRolesWithIDPFuncti-R9Bgb8JYFhM6
I couldn't find any documentation about their functionality or why they are created except this issue explaining when they are created. I used Amplify to about 1 year ago for a project and used the same auth set-up settings but these lambda's weren't created.
So, what's the point of them? They aren't connected to any triggers, so what are they doing? Is there a way to not have them setup during the auth addition process? If they aren't being used I'd rather not have such extra infrastructure setup.
Which Category is your question related to? Auth
Amplify CLI Version 5.1.0
You can use amplify -v to check the amplify cli version on your system
What AWS Services are you utilizing? Auth, API, Storage.
Provide additional details e.g. code snippets
These are custom resource used to extend the CloudFormation;
amplify-collectbetter-dev-140-UserPoolClientLambda-WDwkpxFH8G2M
Is used to ensure the UserPool is to verify the UserPool settings.
amplify-collectbetter-dev-UpdateRolesWithIDPFuncti-R9Bgb8JYFhM6
This is used to update the AuthRole and UnAuthRole to allow access to the IdentityPool
@ammarkarachi Thanks for the reply.
From reading the documentation you provide I get the sense that I won't need to use them. If that is the case how can I remove them from my cloudformation stack? Is that okay to do, or are they used by functionality in Amplify?
@johnEthicalTechnology
I would suggest you keep them, It would require some testing on our part to make sure it doesn't break anything moving forwards
Closing due to inactivity. @johnEthicalTechnology if you have further questions please reply back to this thread or open a new Usage Question issue. 🙂
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.