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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.