2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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 ;)
Contenus pertinents
- demandé il y a 2 ans
- demandé il y a 5 mois
- demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 8 mois
- Comment puis-je modifier les attributs d’un groupe d’utilisateurs Amazon Cognito après sa création ?AWS OFFICIELA mis à jour il y a 6 mois