2 commenti
Please note that the example policy given in this post has some syntax errors. It's missing an asterisk in the Principal section and a comma where the Ressource is defined.
It should look like this:
{
"Version": "2008-10-17",
"Id": "__default_policy_ID",
"Statement": [
{
"Sid": "__default_statement_ID",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"SNS:GetTopicAttributes",
"SNS:SetTopicAttributes",
"SNS:AddPermission",
"SNS:RemovePermission",
"SNS:DeleteTopic",
"SNS:Subscribe",
"SNS:ListSubscriptionsByTopic",
"SNS:Publish"
],
"Resource": "example-topic-arn-account-b",
"Condition": {
"ArnLike": {
"aws:SourceArn": "arn:aws:cloudwatch:example-region:111122223333:alarm:"
}
}
}
]
}
Either the syntax has changed since this was originally posted, or someone did not double-check if the example policy actually works. ;D
risposta 7 mesi fa
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 4 anni fa