Firing an SNS notification upon user registration

As we mentioned earlier, SNS is a very fundamental part of AWS that lets different parts of our software interact between each other via message passing. In SNS, you create topics and subscribe resources to them. Subscribers can be HTTP endpoints, Lambda functions, a mobile application, or you can even send SMS messages via SNS.

In this step, we will create an SNS topic for our user registration event and fire an event to that topic.

Let's start with adding our topic via the CloudFormation template. Add the following block to our Resources section:

"UserRegistrationSnsTopic": { 
 "Type": "AWS::SNS::Topic", 
  "Properties": { 
    "Subscription": [] 

After deploying your application, you can navigate ...

Get Building Serverless Architectures now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.