How to create AWS Cognito userpool/users by script?

0

How to create Cognito userpool (if not exists) and add users (create/update) to the pool using script (re-enterable)? I'd like to provide the script to customer to avoid manual creation etc

Oleg
질문됨 일 년 전997회 조회
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.

profile pictureAWS
전문가
kentrad
답변함 일 년 전
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:

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 ;)

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠