2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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 ;)
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 6달 전