Is there a command line tool for using SQS on AWS ec2?

How do I interact with SQS on ec2 through the command line? I cannot find the SQS tool in AWS Developer Tools.

+4
source share
4 answers

Here is the command line tool for SQS . However, I found that the best way to interact with the SDK. Ruby sdk allows you to work with almost all AWS tools. You just write a one-time ruby ​​script to do whatever you need with AWS.

+2
source

If you use Python, boto is a great tool for working with AWS services.

+1
source

https://github.com/aws/aws-cli supports SQS. From aws sqs help :

 AVAILABLE COMMANDS o add-permission o change-message-visibility o change-message-visibility-batch o create-queue o delete-message o delete-message-batch o delete-queue o get-queue-attributes o get-queue-url o list-queues o receive-message o remove-permission o send-message o send-message-batch o set-queue-attributes o help 
+1
source

Checkout the script I made. It allows you to use only significant interactions with Amazon SQS (receive, send, and delete messages). You will need to create it using Go on the environment in which you work (which is quite simple to do. Just run go build). Let me know if you have questions (on the github problems page) or have problems installing the script on your server / dev machine! I widely use this script on Heroku.

https://github.com/lancecarlson/sqslite

Sending a message:

 export AWS_ACCESS_KEY_ID=whatever export AWS_SECRET_ACCESS_KEY=whatever echo "message" | sqslite -q queue-name -cs 

Receiving a message:

 sqslite -q queue-name 

Delete message:

 echo "ReceiptHandlerId" | sqslite -q queue-name -cd 
-1
source

All Articles