aws-samples/aws-modern-application-workshop

selfSignUpEnabled needs to be added in module-4 when creating Cognito User Pool by CDK

Opened this issue · 0 comments

Hi team,

When walking through the module-4 of branch patch-cdk. It's noticed that the existing CDK code lines of creating Cognito User Pool does not include "selfSignUpEnabled: true". As a result, the User Pool is created as "User sign ups allowed? Only administrators can create users". On the front end, the consequence is that when user registers himself/herself, the UI complains that the User Pool does not allow user sign up hence fails the registration request.

The funny thing is when using AWS CLI to create User Pool, by default selfSignUpEnabled is set to true. This might be the reason that the CDK codes in Module-4 missed this setting. After adding such setting in CDK codes, the issue is resolved.

Anyway just let the team know so such issue in module-4 can be resolved.

Thx and cheers.