---
sourceDocument: Brazil Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Receive events at your ServiceNow instance from Amazon SNS

# Receive events at your ServiceNow instance from Amazon SNS {#ariaid-title1}

Release version: Brazil  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read  
Receive events (Notification, Subscription Confirmation, and Unsubscribe
Confirmation) from Amazon SNS at your ServiceNow instance.

## Before you begin

* Request an Integration Hub subscription
* Activate the Amazon SNS spoke
* Role required: admin
{#notification-sns__ul_xl3_c55_z3b}

## About this task

You can receive events at your ServiceNow instance from Amazon SNS even without setting up the Amazon SNS spoke. To set up the Amazon SNS spoke and use the spoke actions, see [Set up the Amazon SNS spoke](https://www.servicenow.com/docs/hv0M67lKs~3FN_PrA0HJXA#setup-amazon-sns "Integrate the ServiceNow instance and Amazon SNS using AWS credential to authenticate ServiceNow requests.").

## Create secret for the Amazon SNS spoke {#ariaid-title2}

Create a client secret to authorize requests from Amazon SNS.

### Before you begin

Role required: admin.

### Procedure

1. Navigate to AllSystem DefinitionScripts - Background.
2. Enter this command in the Run script (JavaScript executed on server) text field:  
   `gs.info(GlideSecureRandomUtil.getSecureRandomString(32));`
3. Click Run Script.
4. Copy and record the generated value for later use.  
{#create-secret-sns__create-secret}

## Create a record in AWS Configurations {#ariaid-title3}

Create a record in AWS Configurations to authorise requests from Amazon SNS spoke.

### Before you begin

Role required: admin.

### Procedure

1. Navigate to AllAWS ConfigurationAll Configurations.
2. Click New.
3. On the form, fill in the fields.  
   {#create-aws-config__table_gky_zp1_qkb__entry__2}

   | Field | Description |
   |-|-|
   | Property Value | Internal name of the Amazon SNS Subscription subflow. For example, <kbd class="ph userinput">amazon_sns_subscription</kbd>. Note: The Amazon SNS Subscription subflow is a sample subflow. You must create a copy of this subflow and use it to customize event management as per your requirement. In this case, specify the internal name of the customized subflow. |
   | Property Name | Name to identify the record. |
   | Client Secret | Client Secret generated by the script. For information about generating Client Secret see, [Create secret for the Amazon SNS spoke](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#create-secret-sns "Create a client secret to authorize requests from Amazon SNS."). |
   [Table 1. AWS Configurations form]

   {#create-aws-config__table_gky_zp1_qkb}
4. Right-click the form header and click Save.
5. Right-click the form header and click Copy sys_id. Record this value for later use.

## Record the Base API path of the Amazon SNS spoke {#ariaid-title4}

Record the Base API path of the Amazon SNS spoke to authorise requests from Amazon SNS.

### Before you begin

Role required: admin.

### Procedure

1. Navigate to AllSystem Web ServicesScripted Web ServicesScripted REST APIs.
2. Open the record for Amazon SNS.
3. Copy and record the value of Base API path for later use.

## Create topic {#ariaid-title5}

Use the Create Topic spoke action to create a topic in Amazon SNS for your ServiceNow instance.

### Before you begin

Role required: admin.

### Procedure

1. In Workflow Studio, create a flow and include the Create Topic spoke action.  
   For information about creating flows in Workflow Studio, see [Building flows](https://www.servicenow.com/docs/access?context=flows&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).
2. Customize flow to provide these values as inputs to the Create Topic spoke action:  
   {#create-topic-sns__table_l1z_jsc_qkb__entry__2}

   | Field | Description |
   |-|-|
   | Region | AWS geographic area where the infrastructure is housed. |
   | Topic Name | Name to identify the topic. |
   [ ]

   {#create-topic-sns__table_l1z_jsc_qkb}
3. Test the flow and check the Executions tab to ensure that flow is executed as expected.

## Create subscription {#ariaid-title6}

Use the Create Subscription spoke action to create subscription in Amazon SNS for your ServiceNow instance.

### Before you begin

Role required: admin.

### Procedure

1. In Workflow Studio, create a flow and include the Create Subscription spoke action.  
   For information about creating flows in Workflow Studio, see [Building flows](https://www.servicenow.com/docs/access?context=flows&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).
2. Customize flow to provide these values as inputs to the Create Subscription spoke action:  
   {#create-subs-sns__table_l1z_jsc_qkb__entry__2}

   | Field | Description |
   |-|-|
   | Region | AWS geographic area where the infrastructure is housed. |
   | Topic ARN | ARN to uniquely identify the required topic. Subscriptions are created for this topic. |
   | Protocol | HTTPS |
   | Endpoint | Endpoint URL in this format: <kbd class="ph userinput">https://&lt;servicenow-instance&gt;.service-now.com/&lt;base-api-path&gt;/&lt;aws-configuration-sys_id&gt;/&lt;client-secret&gt;</kbd>. Note: For information about obtaining the required values, see [Record the Base API path of the Amazon SNS spoke](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#base-api-sns "Record the Base API path of the Amazon SNS spoke to authorise requests from Amazon SNS."), [Create a record in AWS Configurations](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#create-aws-config "Create a record in AWS Configurations to authorise requests from Amazon SNS spoke."), and [Create secret for the Amazon SNS spoke](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#create-secret-sns "Create a client secret to authorize requests from Amazon SNS."). |
   [ ]

   {#create-subs-sns__table_l1z_jsc_qkb}
3. Test the flow.  
   The flow internally triggers the default Amazon SNS Subscription subflow.
4. In the Executions tab, open the record associated with the subflow execution.  
   Note:  
   Ensure that you check the execution details of the default Amazon SNS Subscription subflow, not the flow you had created.
5. In the Execution Details page, click RUNTIME VALUE.
6. Copy and record the value of Token for later use.  
   This confirmation token is needed to [Confirm subscription](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#confirm-subs-sns "Use the Confirm Subscription spoke action to confirm subscription in Amazon SNS for your ServiceNow instance.").  
   Note:  
   Ensure that you use the confirmation token to [Confirm subscription](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#confirm-subs-sns "Use the Confirm Subscription spoke action to confirm subscription in Amazon SNS for your ServiceNow instance.") within its validity period.

### Result

Subscription for the required topic in Amazon SNS for your ServiceNow instance is created.

## Confirm subscription {#ariaid-title7}

Use the Confirm Subscription spoke action to confirm subscription in Amazon SNS for your ServiceNow instance.

### Before you begin

Role required: admin.

### Procedure

1. In Workflow Studio, create a copy of the default Amazon SNS Subscription subflow.  
   For information about using subflows in Workflow Studio, see [Building subflows](https://www.servicenow.com/docs/access?context=subflows&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).
2. In Workflow Studio, create a flow that includes the copy of the default subflow.  
   For information about creating flows in Workflow Studio, see [Building flows](https://www.servicenow.com/docs/access?context=flows&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).
3. Customize the subflow to include the Confirm Subscription spoke action.
4. Customize subflow to provide these values as inputs to the Confirm Subscription spoke action:  
   {#confirm-subs-sns__table_l1z_jsc_qkb__entry__2}

   | Field | Description |
   |-|-|
   | Region | AWS geographic area where the infrastructure is housed. |
   | Topic ARN | ARN to uniquely identify the required topic. Subscriptions are created for this topic. |
   | Token | Confirmation token generated after creating subscription. See [Create subscription](https://www.servicenow.com/docs/WefKaZkYZKgzWYY1RhTzFg#create-subs-sns "Use the Create Subscription spoke action to create subscription in Amazon SNS for your ServiceNow instance."), for more information. Note: Ensure that you use the confirmation token to confirm subscription within its validity period. |
   [ ]

   {#confirm-subs-sns__table_l1z_jsc_qkb}
5. Test the flow and check the Executions tab to ensure that flow is executed as expected.

### Result

The Amazon SNS subscription for your ServiceNow instance is confirmed.

*[\>]: and then


