If you intend to use Amazon Web Services (AWS) for remote computing and storage, Python is an ideal programming language for developing applications and controlling your cloud-based infrastructure. This cookbook gets you started with more than two dozen recipes for using Python with AWS, based on the author's boto library. You'll find detailed recipes for working with the S3 storage service as well as EC2, the service that lets you design and build cloud applications. Each recipe includes a code solution you can use immediately, along with a discussion of why and how the recipe works. You also. Read more... Abstract: If you intend to use Amazon Web Services (AWS) for remote computing and storage, Python is an ideal programming language for developing applications and controlling your cloud-based infrastructure. This cookbook gets you started with more than two dozen recipes for using Python with AWS, based on the author's boto library. Read more... Content: Table of Contents Preface Conventions Used in This Book Using Code Examples Safari® Books Online How to Contact Us Chapter 1. General Info 1.1 A Quick Note About Python 1.2 Installing boto Download and Install from github.com Manually Download and Install boto Installing boto with easy_install Installing boto with pip Installing boto with virtualenv Installing paramiko Installing euca2ools 1.3 Getting Started with Amazon Web Services Create Your AWS Account Managing Your AWS Credentials in boto A Quick Test 1.4 Using boto with Eucalyptus What Is Eucalyptus? Getting and Installing EucalyptusUsing the Eucalyptus Community Cloud Managing Your Eucalyptus Credentials in boto 1.5 Using boto with Google Cloud Storage What Is Google Cloud Storage? Managing Your Google Cloud Storage Credentials in boto 1.6 Finding Available Regions for AWS 1.7 Enabling Debug Output with boto 1.8 Controlling Socket Timeouts in boto Chapter 2. EC2 Recipes 2.1 Launching an Instance Problem Solution Discussion 2.2 Keeping Track of Instances with Tags Problem Solution Discussion 2.3 Accessing the Console Log Problem Solution Discussion. 2.4 Uploading Your Own SSH KeypairProblem Solution Discussion 2.5 Synchronizing SSH Keypairs Across EC2 Regions Problem Solution Discussion 2.6 Associate an Elastic IP Address with an Instance Problem Solution Discussion 2.7 Attach a Persistent EBS Volume to an Instance Problem Solution Discussion 2.8 Back Up Your EBS Volumes Problem Solution Discussion 2.9 Restore a Volume from a Snapshot Problem Solution Discussion 2.10 Clone an Existing Instance Problem Solution Discussion 2.11 Find All Running EC2 Instances Problem Solution Discussion. 2.12 Monitoring the Performance of Your InstanceProblem Solution Discussion 2.13 Getting Notifications Problem Solution Discussion 2.14 Storing Custom Data in CloudWatch Problem Solution Discussion 2.15 Executing Custom Scripts upon Instance Startup Problem Solution Discussion Chapter 3. S3 Recipes 3.1 Create a Bucket Problem Solution Discussion 3.2 Create a Bucket in a Specific Location Problem Solution Discussion 3.3 Store Private Data Problem Solution Discussion 3.4 Store Metadata with an Object Problem Solution Discussion. 3.5 Computing Total Storage Used by a BucketProblem Solution Discussion 3.6 Copy an Existing Object to Another Bucket Problem Solution Discussion 3.7 Modify the Metadata of an Existing Object Problem Solution Discussion 3.8 Find Out Who Is Accessing Your Data Problem Solution Discussion 3.9 Reduce the Cost of Storing Noncritical Data Problem Solution Discussion 3.10 Generating Expiring URLs for S3 Objects Problem Solution Discussion 3.11 Preventing Accidental Deletion of Data from S3 Problem Solution Discussion 3.12 Hosting Static Websites on S3 Problem. If you intend to use Amazon Web Services (AWS) for remote computing and storage, Python is an ideal programming language for developing applications and controlling your cloud-based infrastructure. This cookbook gets you started with more than two dozen recipes for using Python with AWS, based on the author{u2019}s boto library. You{u2019}ll find detailed recipes for working with the S3 storage service as well as EC2, the service that lets you design and build cloud applications. Each recipe includes a code solution you can use immediately, along with a discussion of why and how the recipe works. You also get detailed advice for using boto with AWS and other cloud services. This book{u2019}s recipes include methods to help you: Launch instances on EC2, and keep track of them with tags Associate an Elastic IP address with an instance Restore a failed Elastic Block Store volume from a snapshot Store and monitor your own custom metrics in CloudWatch Create a bucket in S3 to contain your data objects Reduce the cost of storing noncritical data Prevent accidental deletion of data in S3