Skip to content

Instantly share code, notes, and snippets.

@mpelos
Last active September 30, 2015 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpelos/0a4a9316813f567fcdb6 to your computer and use it in GitHub Desktop.
Save mpelos/0a4a9316813f567fcdb6 to your computer and use it in GitHub Desktop.
{
"Version": "2008-10-17",
"Id": "__default_policy_ID",
"Statement": [
{
"Sid": "__default_statement_ID",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"SNS:ListSubscriptionsByTopic",
"SNS:Subscribe",
"SNS:DeleteTopic",
"SNS:GetTopicAttributes",
"SNS:Publish",
"SNS:RemovePermission",
"SNS:AddPermission",
"SNS:Receive",
"SNS:SetTopicAttributes"
],
"Resource": "arn:aws:sns:us-east-1:521413825844:eventosS3",
"Condition": {
"StringEquals": {
"AWS:SourceOwner": "521413825844"
}
}
},
{
"Sid": "__console_pub_0",
"Effect": "Allow",
"Principal": {
"Service": "s3.amazonaws.com"
},
"Action": "SNS:Publish",
"Resource": "arn:aws:sns:us-east-1:521413825844:eventosS3",
"Condition": {
"ArnLike": {
"aws:SourceArn": "arn:aws:s3:*:*:curso-aws-adtsys"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment