Code for interacting with Amazon Web Services (AWS).
The following scripts assume:
- Amazon's command line interface tools (CLI Tools) are installed: http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/command-reference.html
- Path to CLI tools and AWS access & secret keys are specified as environmental variables:
export JAVA_HOME=$(/usr/libexec/java_home)
export EC2_HOME=/usr/local/ec2/ec2-api-tools-1.7.3.0
export PATH=$PATH:$EC2_HOME/bin
export AWS_ACCESS_KEY=[access key]
export AWS_SECRET_KEY=[secret key]
export AWS_USER_ID=[user id]
- get_spot_histories_all_regions_all_zones.py - retrieves all spot instance histories for all AWS regions over a specified interval for a specific instance type.