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
preguntada hace un año997 visualizaciones
2 Respuestas
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
EXPERTO
kentrad
respondido hace un año
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
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas