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:
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 StringOccasionGraduation

 

 

相关文章:

  • 2022-12-23
  • 2021-04-02
  • 2021-06-14
  • 2021-10-18
  • 2022-01-27
  • 2021-12-27
  • 2021-10-27
  • 2021-11-02
猜你喜欢
  • 2022-02-16
  • 2021-07-03
  • 2021-10-27
  • 2021-10-21
  • 2021-11-04
  • 2021-07-25
  • 2021-11-03
相关资源
相似解决方案