aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
461 stars 116 forks source link

EmailNotification through cloudformation template #504

Open nkvon opened 4 years ago

nkvon commented 4 years ago

Please describe which feature you have a question about? I am using cloudformation to create amplify console application. however i dont see any option to configure EmailNotifications for specific amplify branch.

Provide additional details AWS::Amplify::Branch resource type does not have enable Email Notifications.

swaminator commented 4 years ago

The Email notification is actually an SNS topic which has CloudFormation support: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html

nkvon commented 4 years ago

actually I am looking for adding Email to Amplify Console App directly using AWS::Amplify::Branch or AWS::Amplify::Amplify resource. I don't see any way to add Email with the above CloudFormation resources. the only way I can do this is to do it manually AppSettings -> Email Notification -> Manage Notifications -> Add Email

when I do that manually, this operation actually creating an SNS topic and subscribe my email address, then creating a Cloudwatch even rule adding SNS topic as target.

haicasgox commented 2 years ago

Hello everyone! Is there any update regarding this feature? This feature is really helpful. I am looking forward to having it.

michrome commented 1 year ago

Amplify is using SNS Topics for these notifications. The best approach here is to use CloudFormation to create a SNS Topic using the naming convention amplify-[APPID]_[BRANCH] e.g. amplify-dphnuwxi5h683_main and a SNS Email Subscription. The result will show in the Amplify console as a notification.


Screenshot 2023-02-27 at 16 16 02

Screenshot 2023-02-27 at 16 16 14