2 Answers
- Newest
- Most votes
- Most comments
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 ;)
Relevant content
- asked a year ago
- asked 5 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago