Configure Cognito User Pool in Serverless

Link to chapter -

Please can you update the code snippet for create a UserPool with serverless, the email as UsernameAttributes was added recently.

Apologies for the delay. In past releases Cognito cloudformation added support for email address as username. Docs update are still in progress to reflect this change. You can use "UsernameAttributes" property to set it while creating user pool with cloud formation.


1 Like

Oh yeah we just rolled out an update for that -

Thanks for the heads up.

@jayair do you have any documentation showing a complete list of the available parameters for serverless.yml. Like if I wanted to require MFA or add custom attributes?

Found it,