[AWS] Lab - Create a SNS and subscribe it

In this hands-on exercise, you will learn how to send alerts via SNS by creating a topic, subscribing to a topic, and publishing an alert message to a topic.

  1. Prerequisites: AWS Account
  2. By the end of this lab, you will be able to:
    • Create a topic
    • Subscribe to a topic
    • Publish a message to a topic

Follow the exercise instructions described below:

Step 1. Create a Topic

  • From the AWS Management Console page, select the SNS service.
  • On the left-hand navigation pane, click on the Topics service, and start the Create topic wizard.
  • In the Details section, enter a topic name of your choice
  • In the Access policy – optional section, use the following configuration to create the topic:
ConfigurationValue
Policy method Basic
Define who can publish messages to the topic Everyone
Define who can subscribe to this topic Everyone

 

 

  • Finish the Create topic. The topic details will display, or you can select the newly created topic from the Topics dashboard to create a subscription next.

Step 2. Subscribe to a Topic

  • While you are viewing the details of the newly created topic, start the Create subscription wizard, and use the following details:
FieldValue
Protocol Email
Endpoint Enter your email that should receive the notifications

 

 

  • The subscription page will display, and the status will be Pending confirmation. You will receive an email from Amazon SNS to confirm the subscription. Confirm the subscription.
  • In your web browser, a subscription confirmation screen appears.

Step 3. Publish Message to a Topic

  • Go back to the Topics service.
  • Select the topic you created earlier and Publish a message with the following details:
SectionFieldValue
Message details Subject Wishes
Message body Message body
to send to the endpoint
Congratulations on your
Udacity Nanodegree Graduation!
Message attributes Type, Name, Value StringOccasionGraduation

 

 

posted @   Zhentiw  阅读(66)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2020-03-17 [React + CSS3] Create an Animate Content Placeholder for Loading State in React
2020-03-17 [HTML5] DOM Nodes Explained
2019-03-17 [Algorithm] Search for matching words
2019-03-17 [Algorithm] Trie data structure
2017-03-17 [Angular] USING ZONES IN ANGULAR FOR BETTER PERFORMANCE
2017-03-17 [TypeScript] Using ES6 and ESNext with TypeScript
2016-03-17 [AngularJS] Angular 1.5 multiple transclude
点击右上角即可分享
微信分享提示