Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS Permission error #5

Open
JhoMartins opened this issue Aug 24, 2021 · 0 comments
Open

SQS Permission error #5

JhoMartins opened this issue Aug 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@JhoMartins
Copy link
Contributor

When creating a queue in sqs we are using the default aws policy in the config and the problem is that policy doesn't permit the queue to receive SNS messages and subscriptions doesn't works correctly.

The permission should be:

{
 "Version": "2012-10-17",
 "Statement": [
   {
     "Effect": "Allow",
     "Principal": "*",
     "Action": "SQS:*",
     "Resource": "arn:aws:sqs:us-east-1:<account_id>:<queue_name>",
     "Condition": {
       "ArnLike": {
         "aws:SourceArn": [
           "arn:aws:sns:us-east-1:<account_id>:*",
           "arn:aws:sns:sa-east-1:<account_id>:*"
         ]
       }
     }
   }
 ]
}
@JhoMartins JhoMartins added the bug Something isn't working label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant