> ## Documentation Index
> Fetch the complete documentation index at: https://kb.aampe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS SNS Integration

> Estimated setup time: 1 hour

## Requirements

* A pair of Access Key ID and Secret Access Key with SNS Publish credentials
* The message format that you use

Aampe will call the [AWS SNS Publish API](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html) on your behalf.

Configuring SNS for Aampe includes two steps:

* Create an SNS Publish Policy
* Create an IAM User for Aampe

## Create an SNS Publish Policy

1. In your AWS console, go to the **Identity and Access Management (IAM)** service.
2. Select **Policies** in the navigation menu.
3. Click on **Create Policy**
4. Click on **Choose a service**

   <img src="https://mintcdn.com/aameo/xv3sHrw_QTvcOviW/images/message-providers/aws/create_policy.png?fit=max&auto=format&n=xv3sHrw_QTvcOviW&q=85&s=4bd4c78ab65fb38dc8890d4660cea8b3" alt="Create Policy Pn" title="Create Policy Pn" style={{ width:"90%" }} width="1142" height="631" data-path="images/message-providers/aws/create_policy.png" />
5. Select **SNS**
6. In the **Actions** field, type **Publish** then select the Publish action that appears

   <img src="https://mintcdn.com/aameo/xv3sHrw_QTvcOviW/images/message-providers/aws/publish_policy.png?fit=max&auto=format&n=xv3sHrw_QTvcOviW&q=85&s=a79bf09c88f447756539d58177623c20" alt="Publish Policy Pn" title="Publish Policy Pn" style={{ width:"90%" }} width="1141" height="755" data-path="images/message-providers/aws/publish_policy.png" />
7. Click on **Resources**, keep the **Specific** radio button selected and tick the **Any in this account** checkbox
8. Click **Next: Tags** and then **Next: Review**
9. Choose a name for your policy, such as `SNSPublish`
10. Click on **Create Policy**

## Create an IAM User for Aampe

1. In your AWS console, go to the **Identity and Access Management (IAM)** service.
2. Select **Users** in the navigation menu.
3. Click on **Add users**
4. Choose a username, such as `aampe-sns`
5. Tick the **Access key - Programmatic access** checkbox

   <img src="https://mintcdn.com/aameo/xv3sHrw_QTvcOviW/images/message-providers/aws/programmatic_access.png?fit=max&auto=format&n=xv3sHrw_QTvcOviW&q=85&s=07387a782fafaadca4949a973089719c" alt="Programmatic Access Pn" title="Programmatic Access Pn" style={{ width:"93%" }} width="1138" height="586" data-path="images/message-providers/aws/programmatic_access.png" />
6. Click on **Next: Permissions**
7. Click on the **Attach existing policies directly** button

   <img src="https://mintcdn.com/aameo/xv3sHrw_QTvcOviW/images/message-providers/aws/attach_existing_policy.png?fit=max&auto=format&n=xv3sHrw_QTvcOviW&q=85&s=076b23cf228863bd1e83e64828d7e526" alt="Attach Existing Policy Pn" title="Attach Existing Policy Pn" style={{ width:"93%" }} width="1133" height="423" data-path="images/message-providers/aws/attach_existing_policy.png" />
8. In the **Search** text field, type the name of the policy you created in the previous step and select it when it appears in the list under Policy name.

   <img src="https://mintcdn.com/aameo/xv3sHrw_QTvcOviW/images/message-providers/aws/attach_existing_policy_with_name.png?fit=max&auto=format&n=xv3sHrw_QTvcOviW&q=85&s=c8c73e80e89e40b34682c26cdb3dcee7" alt="Attach Existing Policy With Name Pn" title="Attach Existing Policy With Name Pn" style={{ width:"93%" }} width="1140" height="587" data-path="images/message-providers/aws/attach_existing_policy_with_name.png" />
9. Click on **Next: Tags** and **Next: Review**
10. Review your choices and click on **Create user**
11. You will then be led to a success screen, from which you can copy your **Access key ID** and **Secret access key**

    <img src="https://mintcdn.com/aameo/xv3sHrw_QTvcOviW/images/message-providers/aws/copy_key.png?fit=max&auto=format&n=xv3sHrw_QTvcOviW&q=85&s=704b734c4950637f74aaa844f5fd2d19" alt="Copy Key Pn" width="1138" height="462" data-path="images/message-providers/aws/copy_key.png" />
