Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Cognito user pool to send emails with SES

This morning, I noticed an alert in my user pool settings that I hadn't noticed before:

enter image description here

I looked at the settings screen and there's a radio button:

enter image description here

I already have a from address. How do I set that setting to Yes with CloudFormation?

The Cognito CloudFormation documentation looks like this:

Type: AWS::Cognito::UserPool
Properties:
  AdminCreateUserConfig: 
    AdminCreateUserConfig
  AliasAttributes: 
    - String
  AutoVerifiedAttributes: 
    - String
  DeviceConfiguration: 
    DeviceConfiguration
  EmailConfiguration: 
    EmailConfiguration
  EmailVerificationMessage: String
  EmailVerificationSubject: String
  LambdaConfig: 
    LambdaConfig
  MfaConfiguration: String
  Policies: 
    Policies
  Schema: 
    - SchemaAttribute
  SmsAuthenticationMessage: String
  SmsConfiguration: 
    SmsConfiguration
  SmsVerificationMessage: String
  UsernameAttributes: 
    - String
  UserPoolName: String
  UserPoolTags: 
    String: String

EmailConfiguration is where I set the from address and I figured maybe they added it there, but the EmailConfiguration documentation doesn't seem to have anything either.

Any idea how to configure the Cognito User Pool to use SES for emails?

like image 255
D. Patrick Avatar asked Apr 08 '19 15:04

D. Patrick


1 Answers

I've been keeping an eye on this issue. A few days ago, I noticed that the AWS::Cognito::UserPool EmailConfiguration property documentation was updated. It now includes the EmailSendingAccount property. If you set that to DEVELOPER, it will use SES to send emails with the source ARN specified.

like image 188
D. Patrick Avatar answered Sep 24 '22 06:09

D. Patrick