Unable to pass complex JSON file with multiple nestings for assigning permission to the SNS topic to send messages to the SQS queue
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
Following command issued:
aws sqs set-queue-attributes --queue-url https://sqs.us-west-1.amazonaws.com/123456789012/MyQueue --attributes file:sqspolicy.json
Note that the JSON file (sqspolicy.json) was first created within the SQS console using the following instructions - Step 2. Give permission to the SNS topic to send messages to the SQS queue. (http://docs.aws.amazon.com/sns/latest/gsg/SendMessageToSQS.html#SendMessageToSQS.sqs.permissions)
Contents of JSON file:
```
{
"Version": "2008-10-17",
"Id": "arn:aws:sqs:us-west-1:123456789012:MyQueue/SQSDefaultPolicy",
"Statement": [
{
"Sid": "Sid1363024842688",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SQS:SendMessage",
"Resource": "arn:aws:sqs:us-west-1:123456789012:MyQueue",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:sns:us-west-1:123456789012:MyTopic"
}
}
}
]
}
```
Contributor guide
Assessment
This issue has not been assessed yet.