aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.83k stars 822 forks source link

Cognito Email Delivery through Amazon SES #5104

Open hisham opened 4 years ago

hisham commented 4 years ago

Is your feature request related to a problem? Please describe. Cognito UI shows this warning. Further investigation shows that Cognito has 50 email / day delivery limit.

User_Pools_-_Amazon_Cognito_2020-08-16_09-32-10 png (1250×163) 2020-08-16 14-57-13

Describe the solution you'd like It seems like Amplify CLI should default set Cognito to deliver email through SES, or at least give us this option?

Describe alternatives you've considered It seems I have to modify the cloudformation manually to get this currently.

hisham commented 4 years ago

Turned out adding this in the cloudformation is easy - just need to add this snippet:

      EmailConfiguration:
        SourceArn: arn:aws:ses:us-east-1:...
        EmailSendingAccount: DEVELOPER
MontoyaAndres commented 3 years ago

Do you have any resources or blog where you can explain how did you do this?

hisham commented 3 years ago

Hi @MontoyaAndres you need to edit your auth cloudformation file. Look for a file that ends with 'cloudformation-template.yml' under amplify/backend/auth dir.

MontoyaAndres commented 3 years ago

Thanks @hisham ! What did you write in that file? I haven't done this before and I don't know so much about it :/

djorgji commented 1 year ago

Any idea if this can be prioritized? Amplify prides itself for being sensible defaults for building on AWS. Without a seamless integration of SES, the production readiness of Amplify will be compromised, as the limitations of Cognito will be quickly exceeded. In light of Cognito's own recommendation to utilize SES for production, it is evident that this configuration is essential.