Receive notifications with Amazon SNS

41

We’re happy to announce a new feature now available for all our users: SNS notifications.

We had a lot of requests for this one because every day more and more applications are now cloud-based, and of course Amazon AWS is one of the most popular cloud services out there.

Up to now the only way to receive notifications was to implement an HTTP callback URL, but from now on you can also receive all our notifications (like inbound SMS messages, delivery status notifications, etc) in your SNS topic and handle them with all the AWS tools available 🙂

Why SNS is great to receive notifications

SNS works amazingly well in handling notifications. On one hand, because it scales great, but also you can add as many subscriptions as desired for your topic.

Even better, you can mix the type of subscriptions, so for example you can subscribe an HTTP endpoint, a Lambda function, a Kinesis stream, and so on for the same event.

In the most extreme of the use cases, this will help you setup a server-less cloud application completely integrated with PortaText.

Configuring your SNS topic in your PortaText account

To be able to receive SNS notifications you need to setup an SNS endpoint in your Amazon account, and also create an Access Key and Access Secret, you can read more about these requirements in this SNS guide from Amazon.

The policy needed for the user owner of the access key and secret should look something like this:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1473859117000",
      "Effect": "Allow",
      "Action": [ "sns:Publish" ],
      "Resource": [
        "arn:aws:sns:your_amazon_region:your_amazon_account_id:your_sns_topic_name"
      ]
    }
  ]
}

Once you have fulfilled these requirements you can setup your SNS topic name, the Access Key, and Access Secret in your user panel or via the User Settings API Endpoint, enable SNS publishing and you should start receiving notifications right away!

Types of notifications and payloads

To know more about the type of notifications available and see some examples of them, see our documentation for Notifications.

Conclusion

We hope you like this new feature, and hopefully it will help you extend your current applications (or create new ones) that will take the SMS use (and your business!) to the next level. Please contact us if you have any questions, we’ll be happy to help you getting started with this exciting new feature!

Enjoy 🙂

— The PortaText Team.