Publishing a Message to a Amazon SNS Topic

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating an Amazon SNS Topic
lock
Creating an AWS Lambda Function
lock
Implementing an AWS Lambda Function to Upload to S3
lock
Publishing a Message to a Amazon SNS Topic
lock
Verifying the AWS Lambda Function Processed the Message
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

In this Lab Step you will publish a message to your SNS topic using the AWS Web Console. Your message will be processed by the Lambda function you created in the Implementing your Lambda function Lab Step. When you publish the message, your Lambda function will upload a file to an S3 Bucket.

 

Instructions

1. Navigate to the AWS SNS service.

 

2. In the left-hand side menu, click Topics:

alt

 

3. In the list of topics, click lab-topic:

alt

 

4. Click Publish message:

alt

 

5. In the Message details section of the form, in the Subject field, enter lab-subject:

alt

 

6. In the Message body section of the form, in the Message body to send to the endpoint textbox, enter Lab Message:

alt

Usually when you publish a message to an SNS topic, you would include meaningful data in the message body. The content of the message body is often called the "payload" of a message. In SNS, the payload can be plain text, or it can be a structured payload such as JSON, XML, or some other format. The service or device subscribed to your topic can use the data in the payload to determine what action to take in response to receiving a message.

 

7. To publish your message, click Publish message:

alt

You will see a notification, similar to the following, confirming your message has been published:

alt

 

Summary

In this Lab Step, you published a message to the SNS topic that you created in the Creating your SNS topic Lab Step.

Learning Pathnavigation