# Create the SQS queue

1. Navigate to SQS in the AWS console

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-ed45d39ef08f8d2091b01ec4cae16d523569feb6%2Ff71b4e413c1d909463e39a80a0c27a4e59a917c6874dc5275f9ea3c34f594c9c.png?alt=media)

2. Create a queue

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-c86dfab0572c144f636ea391d129b94b55036c5d%2Fbedb48bcf121da25294d2df35ef8f6bab1e1adffa7827818c2508f4662579152.png?alt=media)

3. Give the queue a name

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-3ebce0fa04d814119a791eef1117f3cf556fb3c9%2F7e39747324227a8d15e55b8be4059fad3738166e92f864ca1f1c67ae9337fbbe.png?alt=media)

4. Under **Configuration**, Set **Message retention** to **1 day**

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-a483d5f3ade4da54be909e9043bbb30837139a85%2F348d408cd75d0b3af3f2bb3915f214bb0a63349db49f708f487c9120273af0f9.png?alt=media)

5. Under **Access policy**, click **Advanced**.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-445f877679281db60857b2e6f333b66d4c2f6d5f%2F75ad886dce04f5f16066722243abf635ca6b7f9b31fc986593bf4e8a51dcd99e.png?alt=media)

6. Delete the default JSON in the Advanced Access policy.
7. Copy and paste in the following JSON, changing `<bucketname>` to be the name of the S3 bucket you created in an earlier step.

{% tabs %}
{% tab title="JSON" %}

```json
{
  "Version": "2012-10-17",
  "Id": "PushMessageToSQSPolicy",
  "Statement": [
    {
      "Sid": "allow-sns-to-send-message-to-sqs",
      "Effect": "Allow",
      "Principal": {
        "AWS": "*"
      },
      "Action": "sqs:SendMessage",
      "Resource": "*",
      "Condition": {
        "StringLike": {
          "aws:SourceArn": "arn:aws:s3:::<bucketname>"
        }
      }
    }
  ]
}
```

{% endtab %}
{% endtabs %}

The result should look like this:

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-6f8cb4d60f8719de3d8436e1e680ed6e20eaa2b8%2Fde7c5704c8ab9ea9c2c2ef5685f32aae81aabb610252bbf67a1c4b9b9c3c7d14.png?alt=media)

{% hint style="info" %}
**📘Leave all other settings set as default, or follow the policies set by your organization.**
{% endhint %}

8. Click **Create queue**

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-2dee4893ef080fc03dd983cc98059faf454eb7a4%2F31225eb4a91bda3a77fd819c291ea14964250e8ab40645da8f96235ed638c481.png?alt=media)

9. Save the SQS queue ARN in a text file. This will come in handy later.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-0d4ef340edc30895fb55762cafc66b4a6639a8cb%2F69b1df0fea73625d7a7c3e53bf4075eced2b40f6317ebd053bc3efd3f7b5eba0.png?alt=media)
