Amazon SNS - Subscribe Topic
Overview
You can use this Snap to subscribe to a topic on Amazon SNS. To receive messages published to a topic, you must subscribe an endpoint (for example, HTTP/HTTPS) to the topic. When you subscribe an endpoint to a topic, the endpoint receives messages published to the associated topic.

Supported Accounts
- This is a Write-type Snap.
Works in Ultra Tasks
Prerequisites
- For an Amazon SNS topic to be able to send messages to a queue, you should set a policy on the queue that allows the Amazon SNS topic to perform the SQS:SendMessage action before subscribing a queue to a topic. See Subscribing an Amazon SQS queue to an Amazon SNS topic for further information.
- Create an endpoint and topic and configure before you subscribe to a topic.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
Document. This Snap has at most one document input view. The topic ARN, attributes, protocol, and endpoint details of the topic. |
|
| Output |
Document. This Snap has at most one document output view. The endpoint details that is subscribed to the topic. |
|
| Learn more about Error handling. | ||
Snap settings
| Field/Field set | Description |
|---|---|
|
Label
|
Required.Specify a unique name for the Snap. Modify this to
be more appropriate, especially if there are more than one of the same Snap in the
pipeline.
Default value: Subscribe Topic Example: |
| Region
|
Specify the AWS region where the application is implemented. This is a suggestible field and suggestions are populated based on the Account settings. If the region field is empty, then the Snap evaluates the region in the following sequence:
Note: It is a best practice to provide value for the Region field.
Default value: None Example: |
| Topic ARN
|
Required. Specify the Amazon Resource Name of the topic. This is a suggestible field and suggestions are populated based on the Account settings. Default value: N/A Example: |
| Protocol
|
Choose the Internet protocol to connect to the Amazon server. Options available include:
Default value: http Example: https |
| Endpoint
|
Enter the endpoint value, such as an email address or the ARN of an Amazon SQS queue. Default value: N/A Example: |
| Attributes |
Use this field set to specify the topic attributes. |
| Attribute Name
|
Enter the name of the attribute in the topic. This is a suggestible field and suggestions are populated based on the Account settings. Default value: N/A Example: |
| Attribute Value
|
Enter the value of the attribute in the topic. Default value: N/A Example: |
| Always Return Subscription ARN
|
Select this checkbox if you want to return the subscription ARN even if it is not yet confirmed. Otherwise, the pending subscription is returned for an unconfirmed subscription. Default status: Deselected Example: |
|
Snap execution Dropdown list
|
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Execute only |
Troubleshooting
| Error | Cause | Resolution |
|---|---|---|
| An error occurred while updating a topic with the given topic name in AWS SNS. | Valid information might be missing. | Check the input data, formats and try again. |
| Missing Topic ARN | Topic ARN should not be blank. | The topic ARN must be provided. |