You must set up SQS queue permissions for users to access the queue.
Procedure
-
Log in to the AWS Management Console as an administrator.
-
Go to the SQS Management Console, and then select the queue that you created from the
list.
-
From the Properties window, select Details, and
record the ARN field value.
Example: arn:aws:sqs:us-east-1:123456789012:MySQSQueueName
- To set the SQS queue permissions by using the Permissions Editor, complete the following
steps.
- From the Properties window, select , and then configure the following parameters:
Table 1. Permission parameters
Parameter |
Value |
Effect |
Click Allow. |
Principal |
Click Everybody (*). |
Actions |
From the list, select SendMessage |
- Click Add Conditionals (Optional), and then configure the
following parameters:
- Click
- To set the SQS queue permissions by using a JSON Policy Document, complete the following
steps.
- In the Properties window, select Edit Policy Document
(Advanced).
- Copy and paste the following JSON policy into the Edit Policy
Document window:
Copy and paste might not preserve the white space in the JSON policy. The white space is
required. If the white space is not preserved when you paste the JSON policy, paste it into a text
editor and restore the white space. Then, copy and paste the JSON policy from your text editor into
the Edit Policy Document window.
{
"Version": "2008-10-17",
"Id": "example-ID",
"Statement": [
{
"Sid": "example-statement-ID",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SQS:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:123456789012:MySQSQueueName",
"Condition": {
"ArnLike": {
"aws:SourceArn": "arn:aws:s3:::my-example-s3bucket"
}
}
}
]
}
-
Click Review Policy. Ensure that the data is correct, and then click
Save Changes.