- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Create and Subscribe to an Amazon SNS Topic
In this hands-on lab, you will act as a Cloud Engineer tasked with designing, implementing, and validating a production-ready SNS notification setup for pub/sub messaging. While deploying this architecture, you will explore the different configuration options for your SNS topics, you'll configure a Lambda function to receive messages sent from the topic as they are published, and you'll view and validate that messages were received and processed appropriately.
Lab Info
Table of Contents
-
Challenge
Verify Pre-Existing Resources
Confirm the Lambda Function deployment and configuration.
There should be a Lambda function called order-processor-from-sns with an IAM role attached that allows your Lambda function to publish to CloudWatch Logs.
-
Challenge
Create the Amazon SNS Topic
Create a new Standard SNS topic called
application-alerts. -
Challenge
Create the SNS Subscription
Subscribe your Lambda function to your Amazon SNS topic using the LAMBDA protocol.
-
Challenge
Publish an SNS Message
- Test and validate the integration between SNS and your subscriber by publishing a message to your topic.
- Verify the subscriber function was invoked by looking at the Amazon CloudWatch log streams that it produces.
- You can send the sample JSON below or your very own message. (You can see the Lab Guide for some sample JSON.)
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.