Created
July 26, 2016 03:40
-
-
Save rlcarrca/a9d76c82dd85a426ee27af7189926be9 to your computer and use it in GitHub Desktop.
This file contains 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
import sys | |
from boto.sqs.connection import SQSConnection | |
conn=SQSConnection('AWS_ACCESS_KEY_ID','AWS_SECRET_KEY') | |
q=conn.get_queue(sys.argv[1]) | |
attrib = q.get_attributes("ApproximateNumberOfMessages") | |
print int(attrib['ApproximateNumberOfMessages']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment