...

/

REST API with SNS Integration

REST API with SNS Integration

Understand the integration of API Gateway with SNS.

We'll cover the following...

Text message API

Amazon Simple Notification Service (SNS) is a popular Pub/Sub service in AWS. Along with the several services within AWS, it also integrates with external services like email and text messaging. That makes it highly versatile and valuable in a vast range of scenarios that require notifications.

We can integrate SNS with the API Gateway to publish a notification on the SNS topic by making an API call. To make this interesting, let’s make an API that can send an SMS text message to your phone.

We’ll look at some code to understand this better.

Implementation

The API for SNS is purely based on query string parameters. When we publish a ...