[aws-cognito] Setting from in emailSettings on a Cognito User pool causes the construct to fail #9739
Labels
@aws-cdk/aws-cognito
Related to Amazon Cognito
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
Specifying the from in the emailSettings for a user pool causes the construct to fail with "Cannot configure From email address for default email configuration (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: c3ab1c5c-d6e5-4ab9-8bac-e604fdc2b175; Proxy: null)"
Reproduction Steps
Create a cognito.UserPool and set the emailSettings property:
What did you expect to happen?
The Cognito system will be configured to deliver email messages with a from and reply to as specified
What actually happened?
The construct will fail with Cannot configure From email address for default email configuration (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: c3ab1c5c-d6e5-4ab9-8bac-e604fdc2b175; Proxy: null).
This isn't specified anywhere in the documentation that you cannot do this for the default email configuration.
Environment
Other
Change documentation to:
Cognito sends emails to users in the user pool, when particular actions take place, such as welcome emails, invitation emails, password resets, etc. The address from which these emails are sent can be configured on the user pool . Read more about email settings here.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: