Skip to content

Instantly share code, notes, and snippets.

@tily
Created March 5, 2017 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tily/dae250c3111185af269b1cd7d0d2ceb5 to your computer and use it in GitHub Desktop.
Save tily/dae250c3111185af269b1cd7d0d2ceb5 to your computer and use it in GitHub Desktop.
require 'aws-sdk'
q3 = AWS::SQS.new(
:sqs_endpoint => 'q3-global.herokuapp.com',
:access_key_id => 'dummy',
:secret_access_key => 'dummy',
:use_ssl => false
)
queue = q3.queues.create('MyQueue001')
queue.send_message('hello!')
p queue.receive_message.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment