import boto.sqs
import boto.sqs.queue
from boto.sqs.message import Message
from boto.sqs.connection import SQSConnection
from boto.exception import SQSError
import urllib2
import sys

access_key = ""
secret_access_key = ""
keys = urllib2.urlopen("http://ec2-52-30-7-5.eu-west-1.compute.amazonaws.com:81/key").read()
access_key, secret_access_key = keys.split(':')

conn = boto.sqs.connect_to_region("eu-west-1", aws_access_key_id=access_key, aws_secret_access_key=secret_access_key)

# Get argument
queueName = sys.argv[1]
# Create a new queue
queue = conn.create_queue(queueName)
print ("Queue " + queueName + " created")
