@@ -0,0 +1,1827 @@
+#!/usr/bin/env python%0A# f0b5ead9-0d44-444a-8780-9125144998e7.s3-website-us-east-1.amazonaws.com%0A# http://f0b5ead9-0d44-444a-8780-9125144998e7.s3-website-us-east-1.amazonaws.com/%0A%0Aimport time%0Aimport uuid%0A%0Aimport boto%0Afrom boto.s3.connection import S3Connection%0A %0Aindex_html = %22%22%22%0A%3Chtml%3E%0A  %3Chead%3E%3Ctitle%3EMy S3 Webpage%3C/title%3E%3C/head%3E%0A  %3Cbody%3E%3Ch2%3EThis is my S3-based website%3C/h2%3E%3C/body%3E%0A%3C/html%3E%22%22%22%0A %0Aerror_html = %22%22%22%0A%3Chtml%3E%0A  %3Chead%3E%3Ctitle%3ESomething is wrong%3C/title%3E%3C/head%3E%0A  %3Cbody%3E%3Ch2%3ESomething is terribly wrong with my S3-based website%3C/h2%3E%3C/body%3E%0A%3C/html%3E%22%22%22%0A %0A# conn = boto.connect_s3(host='s3-us-west-1.amazonaws.com')%0A# website_bucket = conn.create_bucket('garnaat-website-2', location=Location.USWest, policy='public-read')%0A%0A# create a connection to S3%0A# conn = S3Connection(host=%22s3-us-east-1.amazonaws.com%22)%0Aconn = S3Connection()%0Aprint conn%0Abucket_name = str(uuid.uuid4())%0Aprint %22Bucket Name %3E%3E%3E%25s%3C%3C%3C%22 %25 bucket_name%0Awebsite_bucket = conn.create_bucket(%0A    bucket_name,%0A    location=boto.s3.connection.Location.DEFAULT, # = %22us-east-1%22%0A    # location=%22us-east-1%22,%0A    policy='public-read'%0A)%0A %0A# upload our HTML pages and make sure they are publicly readable%0A# also make sure Content-Type is set to text/html%0Aindex_key = website_bucket.new_key('index.html')%0Aindex_key.content_type = 'text/html'%0Aindex_key.set_contents_from_string(index_html, policy='public-read')%0Aerror_key = website_bucket.new_key('error.html')%0Aerror_key.content_type = 'text/html'%0Aerror_key.set_contents_from_string(error_html, policy='public-read')%0A %0A# now set the website configuration for our bucket%0Awebsite_bucket.configure_website('index.html', 'error.html')%0A%0Aprint %22http://%25s.s3-website-us-east-1.amazonaws.com/%22 %25 bucket_name%0A %0A# time.sleep(5)%0A %0A# now get the website configuration, just to check it%0Aprint website_bucket.get_website_configuration()%0A

version 1 of script creating stress test web site