import boto
import time
import sys
import logging
import boto.s3.connection
import ConfigParser
host = '192.168.9.230'
s3 = boto.connect_s3(
host = host,
is_secure = false,
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)
bucket = s3.create_bucket("bucket_name") 1
key = bucket.new_key('amazon.jpg') 2
key.set_contents_from_string("String content!") 3
key.delete() 4
bucket.delete() 5
1 Create a Vault called bucket_name.
2 Create an Object called amazon.jpg.
3 Write String content! into the contents of amazon.jpg Object.
4 Delete the amazon.jpg Object.
5 Delete the bucket_name Vault.