shadowfax
shadowfax

Reputation: 991

Cross Account SQS Subcribe using IAM Roles

I have a use case where I have two AWS accounts A and B. And I want to subscribe an SQS queue (Q) (owned by account B) to listen to notifications from an SNS topic (N) owned by account A using a role R defined by A (A gave role access to B).

I followed the steps in http://docs.aws.amazon.com/IAM/latest/UserGuide/cross-acct-access.html but when i try to subscribe queue Q to topic N, I get "not authorized" error. Also, roles are supposed to used for programmatic access but SQS doesn't have an API to subscribe to a topic (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Operations.html).

How do I make this work ?

Thanks so much!

Upvotes: 3

Views: 4346

Answers (1)

prestomation
prestomation

Reputation: 7440

Check out this section in the SNS documentation

Upvotes: 1

Related Questions