By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Can you Subscribe to an sns topic using organization id?

0

Looking for a way to subscribe to an sns topic using organization id in the following format o-##########. If this is possible what happens? Are all emails associated with the org subscribed? I have tried the below which works for sns:publish however i cannot find anything in the docs relating to subscribe and when this has been attempted nothing appears on the topic.

{
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "SNS:Publish",
            "Resource": "arn:aws:sns:us-east-2:444455556666:MyTopic",
            "Condition": {
                "StringEquals": {
                    "aws:PrincipalOrgID": "myOrgId"
                }
            }
        }
    ]
}
1 Answer
0

The AWS CLI Command Reference for SNS for the SNS Subscribe command, does not list Organization ID as an acceptable notification endpoint.

Below is a list of accepted notification endpoints for each protocol:

  • For the http protocol, the (public) endpoint is a URL beginning with http:// .
  • For the https protocol, the (public) endpoint is a URL beginning with https:// .
  • For the email protocol, the endpoint is an email address.
  • For the email-json protocol, the endpoint is an email address.
  • For the sms protocol, the endpoint is a phone number of an SMS-enabled device.
  • For the sqs protocol, the endpoint is the ARN of an Amazon SQS queue.
  • For the application protocol, the endpoint is the EndpointArn of a mobile app and device.
  • For the lambda protocol, the endpoint is the ARN of an Lambda function.
  • For the firehose protocol, the endpoint is the ARN of an Amazon Kinesis Data Firehose delivery stream.
AWS
answered 5 months ago
profile picture
EXPERT
reviewed 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions