Sending a simple notification to Amazon SNS from WSO2 Enterprise Integrator

Krishni Andradi
WSO2 Solution Architecture Team Blog
2 min readNov 8, 2019

WSO2 Amazon Simple Notification Connector

WSO2 Enterprise Integrator is a fully open-source product that helps to integrate and connecting different heterogeneous applications systems. It has the capabilities of Business Process Management, Enterprise Service Bus, Messaging queues, Analytics and Tooling.

WSO2 Connector store has 400+ enterprise-ready connectors for many popular business applications so that those systems can be connected with WSO2 Enterprise Integrator even without any additional service invoke.

Amazon SNS is the simple notification service hosted on Amazon. You can easily create a topic so that users can send notifications to this topic.

All the Amazon SNS operations come as simple mediators with this Amazon SNS connector. So that WSO2 Integration studio users can use those operations simply by dragging and dropping.

Set up an Amazon SNS account, create a topic and add an email subscriber to that topic. So that every message that is pushed to that topic will be emailed to the email address specified in the email subscriber.

After creating a topic you will see a tab called access policy which contains all the details such as topic version, region, topic ARN.

Copy Amazon Accounts Account id and secret key, and topics’ version, region and ARN. Those will be needed when invoking the operations from WSO2 Enterprise Integrator.

Refer this guide for set up Amazon Account, to create a topic, add subscribers

Download and install WSO2 Enterprise Integrator, Integration studio, and Amazon SNS file connector.

Create an ESB solution project in the Integration studio and add a REST API to it.

Now Amazon SNS operations will appear as mediators in the REST API pallette.

Now drag and drop an init operation and a publish operation to the “in sequence” of your REST API.

Add account id and secret key copied from the AWS account to the init operation. specify the version and the region from the access policy of your AWS topic

Add publish a message, message subject and the AWS topics Arn to the publish operation properties.

This way you can integrate Amazon SNS with WSO2 Enterprise Integrator. If you are more interested you can create a simple subscriber from Amazon SQS and subscribe to the above topic. WSO2 Connector store also has a connector called Amazon SQS connector, so that you can also create a subscriber message flow.

Thank You

--

--