2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
In addition to the above, you can also Importing users into user pools from a CSV file.
There is another, more dynamic way to import the users via Lambda, Importing users into user pools with a user migration Lambda trigger.
0
HI Oleg,
I would use CDK to leverage infrastructure as code. In particular, you can look at below construct to create a Cognito User pool: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPool.html.
To create users in that pool programmatically there are 3 options:
- Still use CDK: https://github.com/awesome-cdk/cdk-userpool-user
- Use CLI: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/admin-create-user.html
- Use SDK: https://www.npmjs.com/package/@aws-sdk/client-cognito-identity
Hope it helps, and if does I'd appreciate if answer can be accepted, so that community can benefit for clarity when searching for similar questions, thanks ;)
Contenuto pertinente
- AWS UFFICIALEAggiornata 6 mesi fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 8 mesi fa