Amazon SNS (Simple Notification Service) is a managed publish/subscribe service offered as part of Amazon Web Services. It facilitates the communication between systems that do not have direct connectivity. The one end of the channel publishes messages to a shared location, commonly known as a "topic" in SNS, whereas the other end subscribes to the messages from this location. If your business infrastructure is hosted on AWS, SNS can be used to send notifications between applications hosted on AWS cloud when a particular event occurs. It simplifies the message and notification handling process while reducing the overall overhead associated with managing them onsite.
Amazon SNS Integration Overview
Step-By-Step: How to Integrate Amazon SNS with Your CMS
To use a Custom Widget with Amazon SNS, perform the following steps:
Set up the essentials in ContentstackCreate a stack and content type in Contentstack. Add entries to your content types and save or publish them on your environment. Refer to our Amazon SNS documentation for step-by-step instructions.
Set up lambda function and API gatewayCreate a Lambda Function in AWS. This function will execute the logic defined for sending notifications. Then, create an API gateway through which the communication between Contentstack and lambda function will take place. Then, deploy the API to make it functional.
Trigger a webhook to notify when an event occurs
Lastly, set up a webhook in Contentstack to invoke the Lambda Function for sending the notification to the AWS lambda function through the deployed API.