Complete a 3 Question Survey and Earn a re:Post Badge
Help improve AWS Support Official channel in re:Post and share your experience - complete a quick three-question survey to earn a re:Post badge!
我想要一个 Amazon Simple Notification Service (Amazon SNS) 主题来接受来自 AWS Organizations 组织中的任何 AWS 账户的消息。
配置 Amazon SNS 主题的访问策略,以允许您组织中的任何账户向该主题发布消息。在访问策略中,包括全局条件键 aws:PrincipalOrgID,然后指定您的组织的 ID。
完成以下步骤:
{ "Version": "2012-10-17", "Id": "__default_policy_ID", "Statement": [ { "Sid": "allow-publish-from-organization-accounts", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": [ "sns:Publish" ], "Resource": "snsTopicArn", "Condition": { "StringEquals": { "aws:PrincipalOrgID": "myOrgId" } } } ] }
已发布消息显示在您的电子邮件中。
AWS 全局条件上下文键
Example cases for Amazon SNS access control
在 Amazon SNS 中管理访问权限概述
可以在 AWS Organizations 中使用的 AWS 服务