In this video you will learn how to subscribe to an Amazon Simple Notification Service (Amazon SNS) topic with an email address, so that every time someone sends a message to the topic, you will automatically get an email notification containing the message.
TIMESTAMPS:
0:00 - Quick introduction
0:26 - Demo: Add an email subscription to an SNS topic
VIDEO TRANSCRIPT:
In this video I'm going to show you how to add an email subscription to your SNS topic.
Amazon SNS is a great tool to automate communication between applications, or between microservices. But sometimes you just want to get an email notification whenever something important happens. Like a security finding, or maybe you want to celebrate whenever a new user signs up to your app. All you need to do is add an email subscription to your SNS topic, and I'm going to show you exactly how that works.
Let's navigate to the SNS dashboard, click on topics, and open the topic "Events" that we created in the last video. Scrolling down, we can see that we don't have any subscriptions yet. Lets click on create subscription. The topic ARN - which stands for Amazon Resource Name, and is a unique identifier for the topic - has been filled automatically, and now we need to define the protocol. As you can see, we have all kinds of possible endpoint types, but for this example let's choose Email. This is going to ask us for an email address. Let me quickly use my own. Scroll down, and click Create subscription.
This will automatically send a confirmation mail to the address I used, and the status is "Pending confirmation". Lets have a look at my inbox. Right here's an AWS Notification. Lets open it up: You have chosen to subscribe to the topic - and the topic ARN from before. To confirm this subscription, we can click the link below. And with this, the subscription has been confirmed.
Lets go back to SNS, reload the page, and we can see that the status is now "Confirmed". Up here I can click on the topic name to go back and click on Publish message. Now I can add a subject, lets say "Hello Subscriber", and quickly add a message body.
Now I'm going to scroll down and click Publish message.
Lets go back to our inbox - and here it is!
Now, whenever a new message is sent to the topic, I will automatically get the message as an email.
In the next video, I'm going to show you how to trigger a Lambda function whenever there's a new message to kick off downstream automation. Don't forget to click subscribe and you'll get notified when that video comes out.
#AWS #In5MinutesOrLess #serverless #EventDrivenArchitecture
Смотрите видео How to Add Email Subscriptions to Your Amazon SNS Topic: A Step-by-Step Guide онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dennis Traub 20 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,096 раз и оно понравилось 30 людям.