Unify Integrations
Logo
Amazon SNS

Amazon SNS

Logo

3 mins READ

Amazon Simple Notification Service (SNS) is a fully managed messaging service that enables decoupled communication between distributed systems through the use of topics, subscriptions, and notifications. It supports multiple message delivery protocols, including email, SMS, HTTP, and AWS Lambda.

Integrating Amazon SNS ensures reliable, scalable, and real-time messaging for efficient communication between distributed systems and applications.

Authentication

Ensure you have the following information ready for a seamless integration process:

  • Connection name: a name that identifies this connection in UnifyApps, such as "MyAppAmazonSNSIntegration".

  • Region (required): the AWS region of your resources, such as us-east-1. If your AWS console URL starts with https://us-east-1.console.aws.amazon.com, enter us-east-1.

  • Authentication type: Access Key or IAM Role.

The fields you fill in depend on the authentication type:

  • Access Key: enter the Access key ID and Secret access key of an IAM user (both required).

  • IAM Role: enter the ARN of an IAM role in the IAM Role field (required), and in External Id the external ID set on the role's trust relationship.

Access Key Based

  1. Sign in to the AWS Management Console.

  2. Search for Users in the search bar at the top of the console and open Users in IAM (Identity and Access Management).

  3. Click Create user and enter a user name.

  4. Choose Attach policies directly and attach the AmazonSNSFullAccess policy (or a policy that grants the Amazon SNS permissions you need). Click Create user.

  5. Open the new user, go to Security credentials and click Create access key.

  6. Choose Command Line Interface as the use case, add a description tag and click Create access key.

  7. Copy the access key ID and secret access key into the connection form. Store them securely; anyone with them can access your AWS account.

Frame 47 (3).png
Frame 47 (3).png

IAM Role Based

  1. Sign in to AWS Management Console (https://console.aws.amazon.com/) and select security credentials.

  2. Navigate to the IAM dashboard and click "Roles" > "Create role". (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)

  3. Under "Trusted entity type," choose the AWS account option.

  4. Select "Another AWS account" and input the UnifyApps AWS account ID (contact support to obtain this).

  5. Check the "Require external ID" box and enter the External ID provided by UnifyApps.

    Frame 48 (2).png
    Frame 48 (2).png

  6. Assign the necessary permissions for UnifyApps to operate automated workflows within your account.

  7. Give the IAM role a name and description.

  8. Click the "Select trusted entities" Edit button to modify trusted entity policies if needed. (Optional)

  9. Click the "Add permissions" Edit button to adjust permissions. (Optional)

  10. If using object tags, select an appropriate tag for the IAM role. (Optional)

  11. Click on Create Role to finalize the process.

Create an IAM Permissions Policy

  1. Go to the AWS Console and open the IAM console (https://console.aws.amazon.com/iam).

  2. Navigate to Access management and select Policies.

  3. Choose Create Policy.

  4. Locate and choose the AWS service that UnifyApps will access.

  5. Select the required permissions under the Actions field.

  6. Define the resources that the role will have access to.

  7. Continue clicking Next until you reach the Review policy page.

  8. Provide a Name for the policy.

  9. Click Create policy once done.

Retrieve IAM Role ARN

  1. Open the AWS Console and go to My Security Credentials > Roles.

  2. Search for the IAM role you need for the connection.

    Frame 49 (2).png
    Frame 49 (2).png

  3. Select the role to view its details.

  4. Copy the Role ARN for use in the UnifyApps connection setup.

Triggers

TriggersDescription
On message receivedTriggers when a message is received in Amazon SNS
FAQs

Which authentication method should I use for Amazon SNS?

Access Key (an IAM user's Access key ID and Secret access key) or IAM Role (a role ARN plus the External ID set on its trust relationship) — pick whichever matches how your AWS account grants access.

Where do I find the AWS access key, secret access key, and IAM role ARN for Amazon SNS?

For Access Key: create or open an IAM user, attach the AmazonSNSFullAccess policy (or an equivalent), then under Security credentials create an access key and copy the Access key ID and Secret access key. For IAM Role: create a role trusting the UnifyApps AWS account with the External ID UnifyApps provides, then copy its Role ARN from My Security Credentials > Roles.

What permissions does the Amazon SNS connection require?

The IAM user or role needs the Amazon SNS permissions for the actions you'll run — for example AmazonSNSFullAccess for full access, or a narrower policy scoped to the specific SNS actions you need.

Why isn't the Amazon SNS 'On message received' trigger firing?

Confirm the connection's Region matches where your SNS topic lives, and that the IAM user or role has permission to read from that topic/subscription.