This template creates an Amazon SNS topic with two Amazon SQS queue subscriptions. The topic is named 'SampleTopic' and the subscriptions are configured to use the 'sqs' protocol. The endpoints for the subscriptions are obtained using the 'Fn::GetAtt' function to retrieve the ARNs of the 'MyQueue1' and 'MyQueue' queues.

MySNSTopic
AWS::SNS::Topic


Subscription

Queue
AWS::SQS::Queue


CloudFormation Template

Share Template