[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.
- Prerequisites: AWS Account
- 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:
Configuration | Value |
---|---|
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:
Field | Value |
---|---|
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:
Section | Field | Value |
---|---|---|
Message details | Subject | Wishes |
Message body | Message body to send to the endpoint |
Congratulations on your Udacity Nanodegree Graduation! |
Message attributes | Type, Name, Value | String , Occasion , Graduation |
- In your email client, you will receive an email from AWS Notifications (no-reply@sns.amazonaws.com)
分类:
AWS
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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