Have you ever wished you could access your Amazon Simple Queue Service from the command line ? Now you can:

 1 $ AWS_ACCESS_KEY_ID=<your access key>
 2 $ AWS_SECRET_ACCESS_KEY="<the secret access key>"
 3 
 4 $ clisqs create my-queue
 5 Queue my-queue was created.
 6 
 7 $ clisqs list
 8 my-queue
 9 
10 $ clisqs push --data "this is the message" my-queue
11 Pushed 19 bytes to queue my-queue
12 
13 $ cat README.txt | clisqs push my-queue
14 Pushed 2687 bytes to queue my-queue
15 
16 $ clisqs push my-queue README.txt
17 Pushed 2687 bytes to queue my-queue
18 
19 $ clisqs size my-queue
20 3
21 
22 $ clisqs pop my-queue
23 this is the message
24 
25 $ clisqs delete --force my-queue
26 Queue my-queue was deleted.

Installation

1 $ sudo gem install cliaws

Direct-code access

1 require "rubygems"
2 require "cliaws"
3 
4 Cliaws.sqs.push("my-queue", "the data")
5 the_size = Cliaws.sqs.size("my-queue")
6 the_message = Cliaws.sqs.pop("my-queue")

S3 ?

This gem also works with S3. See my prior release announcement: Cliaws: command-line access to S3

Search

Your Host

A picture of me

I am François Beausoleil, a Ruby on Rails and Scala developer. During the day, I work on Seevibes, a platform to measure social interactions related to TV shows. At night, I am interested many things. Read my biography.

Top Tags

Books I read and recommend

Links

Projects I work on

Projects I worked on