@@ -0,0 +1,853 @@
+# This script created a queue%0A#%0A# Author - Paul Doyle  Nov 2015%0A#%0A#%0Aimport boto.sqs%0Aimport boto.sqs.queue%0Afrom boto.sqs.message import Message%0Afrom boto.sqs.connection import SQSConnection%0Afrom boto.exception import SQSError%0Aimport sys%0Aimport urllib2%0A%0A# Get the keys from a specific url and then use them to connect to AWS Service%0A%0Aresponse = urllib2.urlopen('http://ec2-52-30-7-5.eu-west-1.compute.amazonaws.com:81/key')%0A%0Ahtml=response.read()%0A%0Aresult = html.split(':')%0A%0A#print (result%5B0%5D)%0A#print (result%5B1%5D)%0A%0Aaccess_key_id = result%5B0%5D%0Asecret_access_key = result%5B1%5D%0A%0A#print (access_key_id,secret_access_key)%0A# Set up a connection to the AWS service.%0Aconn = boto.sqs.connect_to_region(%22eu-west-1%22, aws_access_key_id=access_key_id, aws_secret_access_key=secret_access_key)%0A%0Astudent_number = 'C13470112'%0Aq = conn.create_queue(student_number+sys.argv%5B1%5D)%0A%0A%0A

create new queue