Create the SQS queue

  1. Navigate to SQS in the AWS console

  1. Create a queue

  1. Give the queue a name

  1. Under Configuration, Set Message retention to 1 day

  1. Under Access policy, click Advanced.

  1. Delete the default JSON in the Advanced Access policy.

  1. Copy and paste in the following JSON, changing <bucketname> to be the name of the S3 bucket you created in an earlier step.
{ "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>" } } } ] }

The result should look like this:


πŸ“˜

Leave all other settings set as default, or follow the policies set by your organization.


  1. Click Create queue

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

Did this page help you?