Book description
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 get detailed advice for using boto with AWS and other cloud services.
This book’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
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Preface
- 1. General Info
-
2. EC2 Recipes
- Launching an Instance
- Keeping Track of Instances with Tags
- Accessing the Console Log
- Uploading Your Own SSH Keypair
- Synchronizing SSH Keypairs Across EC2 Regions
- Associate an Elastic IP Address with an Instance
- Attach a Persistent EBS Volume to an Instance
- Back Up Your EBS Volumes
- Restore a Volume from a Snapshot
- Clone an Existing Instance
- Find All Running EC2 Instances
- Monitoring the Performance of Your Instance
- Getting Notifications
- Storing Custom Data in CloudWatch
- Executing Custom Scripts upon Instance Startup
-
3. S3 Recipes
- Create a Bucket
- Create a Bucket in a Specific Location
- Store Private Data
- Store Metadata with an Object
- Computing Total Storage Used by a Bucket
- Copy an Existing Object to Another Bucket
- Modify the Metadata of an Existing Object
- Find Out Who Is Accessing Your Data
- Reduce the Cost of Storing Noncritical Data
- Generating Expiring URLs for S3 Objects
- Preventing Accidental Deletion of Data from S3
- Hosting Static Websites on S3
- Uploading Large Objects to S3
- About the Author
- Copyright
Product information
- Title: Python and AWS Cookbook
- Author(s):
- Release date: October 2011
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449305444
You might also like
video
Data Engineering with Python and AWS Lambda LiveLessons
7 Hours of Video Instruction Data Engineering with Python and AWS Lambda LiveLessons shows users how …
video
Learn AWS Automation with Boto3, Python, and Lambda Functions
The objective of the course, AWS Automation with Boto3, Python, and Lamba Functions, is to cover …
book
AWS Cookbook
This practical guide provides over 70 self-contained recipes to help you creatively solve common AWS challenges …
book
Python for DevOps
Much has changed in technology over the past decade. Data is hot, the cloud is ubiquitous, …