{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/96","repository_url":"https://api.github.com/repos/aws/aws-cli","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/96/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/96/events","html_url":"https://github.com/aws/aws-cli/issues/96","id":13320892,"number":96,"title":"Unable to pass complex JSON file with multiple nestings for assigning permission to the SNS topic to send messages to the SQS queue","user":{"login":"rosscar","id":3837274,"avatar_url":"https://avatars.githubusercontent.com/u/3837274?v=3","gravatar_id":"","url":"https://api.github.com/users/rosscar","html_url":"https://github.com/rosscar","followers_url":"https://api.github.com/users/rosscar/followers","following_url":"https://api.github.com/users/rosscar/following{/other_user}","gists_url":"https://api.github.com/users/rosscar/gists{/gist_id}","starred_url":"https://api.github.com/users/rosscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosscar/subscriptions","organizations_url":"https://api.github.com/users/rosscar/orgs","repos_url":"https://api.github.com/users/rosscar/repos","events_url":"https://api.github.com/users/rosscar/events{/privacy}","received_events_url":"https://api.github.com/users/rosscar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-cli/labels/feature-request","name":"feature-request","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"jamesls","id":368057,"avatar_url":"https://avatars.githubusercontent.com/u/368057?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesls","html_url":"https://github.com/jamesls","followers_url":"https://api.github.com/users/jamesls/followers","following_url":"https://api.github.com/users/jamesls/following{/other_user}","gists_url":"https://api.github.com/users/jamesls/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesls/subscriptions","organizations_url":"https://api.github.com/users/jamesls/orgs","repos_url":"https://api.github.com/users/jamesls/repos","events_url":"https://api.github.com/users/jamesls/events{/privacy}","received_events_url":"https://api.github.com/users/jamesls/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2013-04-17T21:31:17Z","updated_at":"2016-05-20T16:13:37Z","closed_at":null,"body":"Following command issued:\r\n\r\naws sqs set-queue-attributes --queue-url https://sqs.us-west-1.amazonaws.com/123456789012/MyQueue --attributes file:sqspolicy.json \r\n\r\nNote 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) \r\n\r\nContents of JSON file:\r\n```\r\n{\r\n  \"Version\": \"2008-10-17\",\r\n  \"Id\": \"arn:aws:sqs:us-west-1:123456789012:MyQueue/SQSDefaultPolicy\",\r\n  \"Statement\": [\r\n    {\r\n      \"Sid\": \"Sid1363024842688\",\r\n      \"Effect\": \"Allow\",\r\n      \"Principal\": {\r\n        \"AWS\": \"*\"\r\n      },\r\n      \"Action\": \"SQS:SendMessage\",\r\n      \"Resource\": \"arn:aws:sqs:us-west-1:123456789012:MyQueue\",\r\n      \"Condition\": {\r\n        \"ArnEquals\": {\r\n          \"aws:SourceArn\": \"arn:aws:sns:us-west-1:123456789012:MyTopic\"\r\n        }\r\n      }\r\n    }\r\n  ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/220649958","html_url":"https://github.com/aws/aws-cli/issues/96#issuecomment-220649958","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/96","id":220649958,"user":{"login":"CamelShikai","id":14929937,"avatar_url":"https://avatars.githubusercontent.com/u/14929937?v=3","gravatar_id":"","url":"https://api.github.com/users/CamelShikai","html_url":"https://github.com/CamelShikai","followers_url":"https://api.github.com/users/CamelShikai/followers","following_url":"https://api.github.com/users/CamelShikai/following{/other_user}","gists_url":"https://api.github.com/users/CamelShikai/gists{/gist_id}","starred_url":"https://api.github.com/users/CamelShikai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CamelShikai/subscriptions","organizations_url":"https://api.github.com/users/CamelShikai/orgs","repos_url":"https://api.github.com/users/CamelShikai/repos","events_url":"https://api.github.com/users/CamelShikai/events{/privacy}","received_events_url":"https://api.github.com/users/CamelShikai/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T16:13:37Z","updated_at":"2016-05-20T16:13:37Z","body":"I met the policy invalid type error,too. I converted policy dict to a json string and it was accepted. Hope that could help you."}}
{"actor":{"display_login":"CamelShikai"}}