Using Console
"Principal": "*"
line from the statement to restrict subscriptions to only AWS accounts that you explicitly specify.Using CLI
<topic-arn>
with the ARN of the identified SNS topic.
<topic-arn>
with the ARN of the identified SNS topic.
Using Python
get_topic_attributes
method and then check if the policy allows global subscriptions. You can use the following code snippet to achieve this: