Created
October 15, 2014 23:34
-
-
Save trevorrowe/93c112eddc27182c9d96 to your computer and use it in GitHub Desktop.
Subscribing a queue to a topic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-v1' | |
queue = AWS::SQS.new.queues['queue-arn'] | |
topic = AWS::SNS.new.topics['topic-arn'] | |
# this will modify the queue policy to allow the topic to send messages | |
topic.subscribe(queue) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment