SNS (Simple Notification Service)
This topic briefly describes how to configure an SNS instance.
To configure an SNS instance:
- Create an SNS topic, for example, example-dev-ses-inbox-topic.
- Create a Subscription to this topic. The Protocol is Amazon SQS, and the Endpoint is the ARN of your SQS queue, for example arn:aws:sqs:us-east-1:555555555555:example-dev-ses-inbox-queue.
- Edit the Policy Document for your SQS queue, and add a stanza such as the following in order to grant the SNS topic permission to send messages to the queue.
{
"Sid": "Sid1449524689678",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SQS:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:555555555555:example-dev-ses-inbox-queue",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:sns:us-east-1:555555555555:example-dev-ses-inbox-topic"
}
}
}
For more information, see Amazon Simple Notification Service.
Previous Topic
SQS (Simple Queue Service)
Next Topic
SES (Simple Email Service)