paint-brush
Subscribe SQS to a SNS topic in another AWS account with CloudFormation, and gotchas!by@theburningmonk
5,768 reads
5,768 reads

Subscribe SQS to a SNS topic in another AWS account with CloudFormation, and gotchas!

by Yan Cui2mJanuary 24th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A use case arrived recently, where we need to subscribe a SQS queue to a SNS topic running in another AWS account. On the surface this seems like something many people would need to do, and indeed I was able to find an <a href="https://docs.aws.amazon.com/sns/latest/dg/SendMessageToSQS.cross.account.html#SendMessageToSQS.cross.account.queueowner" target="_blank">official tutorial</a> pretty quickly. But the tutorial is all “click this in the SQS console, and do that in the SNS console”. We are strong believers in Infrastructure as Code and having someone do the subscription steps manually is not going to work, especially given that we’ll be repeating this process in many places.

Company Mentioned

Mention Thumbnail
featured image - Subscribe SQS to a SNS topic in another AWS account with CloudFormation, and gotchas!
Yan Cui HackerNoon profile picture
Yan Cui

Yan Cui

@theburningmonk

AWS Serverless Hero. Independent Consultant. Developer Advocate at Lumigo.

Learn More
LEARN MORE ABOUT @THEBURNINGMONK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Yan Cui HackerNoon profile picture
Yan Cui@theburningmonk
AWS Serverless Hero. Independent Consultant. Developer Advocate at Lumigo.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Email-database