Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cognito User Pool - "Email Delivery through Amazon SES" #7309

Closed
2 tasks
realharry opened this issue Apr 10, 2020 · 2 comments
Closed
2 tasks

Cognito User Pool - "Email Delivery through Amazon SES" #7309

realharry opened this issue Apr 10, 2020 · 2 comments
Assignees
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito @aws-cdk/aws-ses Related to Amazon Simple Email Service feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@realharry
Copy link

Cognito User Pool currently has an option called "Email Delivery through Amazon SES". I couldn't find any corresponding attribute in CDK: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.UserPool.html

Use Case

Currently, the UserPool construct is marked as experimental API (presumably, subject to change). But, most of the functionalities are already there. One of the missing features seems to be an attribute to be able to use AWS SES for email invitation/verification. This is somewhat related to #7235, but unlike #7235, this option "Email Delivery through Amazon SES" can be changed after a userpool is created, and hence I would think this feature request could be a low priority (at least, lower than #7235). Still, it would be nice to be able to automate every step without having to go to the console.

Proposed Solution

There is an interface called EmailSettings (experimental), https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.EmailSettings.html. We may be able to use this attribute to this interface.

One thing to note is that, according to the console UI, setting this value (Delivery through SES) to true requires From Email Address ARN (not just email address string). Hence, we will need a way to specify the from email address arn as well.

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@realharry realharry added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Apr 10, 2020
@SomayaB SomayaB added @aws-cdk/aws-cognito Related to Amazon Cognito @aws-cdk/aws-ses Related to Amazon Simple Email Service labels Apr 11, 2020
@duarten
Copy link
Contributor

duarten commented Apr 13, 2020

As a workaround, I'm doing

;(this.pool.node.defaultChild as CfnUserPool).emailConfiguration = {
    from: ...,
    emailSendingAccount: "DEVELOPER",
    replyToEmailAddress: ...,
    sourceArn: ...,
}

@nija-at
Copy link
Contributor

nija-at commented Apr 14, 2020

@realharry - Thanks for filing this issue. This looks like a duplicate of #6768 and hence closing this in favour of the other one.
Let us know if the feature is looking for is different or not covered by #6768.

@nija-at nija-at closed this as completed Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito @aws-cdk/aws-ses Related to Amazon Simple Email Service feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants