pip install boto
python
import boto
python
boto.config.add_section('Credentials')
boto.config.set('Credentials', 'aws_access_key_id', 'YOUR_ACCESS_KEY')
boto.config.set('Credentials', 'aws_secret_access_key', 'YOUR_SECRET_ACCESS_KEY')
python
import boto.ec2
conn = boto.ec2.connect_to_region('us-west-2')
reservation = conn.run_instances('AMI_ID', key_name='KEY_PAIR_NAME', instance_type='INSTANCE_TYPE')
python
import boto.s3
conn = boto.s3.connect_to_region('us-west-2')
bucket_name = 'my-bucket'
bucket = conn.create_bucket(bucket_name)
key = bucket.new_key('my-key')
key.set_contents_from_filename('path/to/file.txt')
python
import boto.sns
conn = boto.sns.connect_to_region('us-west-2')
topic_name = 'my-topic'
topic = conn.create_topic(topic_name)
message = 'Hello, world!'
conn.publish(topic=topic, message=message)