Skip to content

Instantly share code, notes, and snippets.

@artburkart
Created July 22, 2016 14:01
Show Gist options
  • Save artburkart/ff20586b32239238a08a14975eab4361 to your computer and use it in GitHub Desktop.
Save artburkart/ff20586b32239238a08a14975eab4361 to your computer and use it in GitHub Desktop.
Sample boto3 sqs stuff
sqs = boto3.resource('sqs', 'us-east-1') # python code
sqs_queue = sqs.get_queue_by_name(QueueName=queue_name)
msg = json.dumps({'timestamp': time.time(), 'type': 'job', 'data': payload)) # equivalent of JSON.stringify
sqs_queue.send_message(MessageBody=fake_message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment