Scripts for operating cross region AWS resources
This folder gathers various scripts used during cross region operations currently. The goal is to provide a starting point for anyone who wants to reproduce this piece of research.
The scripts can be implemented in any language, though currently the team focuses on either Python with boto or PowerShell with the AWS SDK for .NET for its AWS automation tasks.
The scripts are based on Python 2.7 and have the following dependencies:
- A recent version of boto (tested against 2.5.2), which provides the interface to Amazon Web Services
- Mac OSX 10.06 (Snow Leopard)
/usr/bin/python --versiongives Python 2.7 +
sudo pip install boto argparse
- Add the following to your
export AWS_ACCESS_KEY_ID="AKIAI....." export AWS_SECRET_ACCESS_KEY="oF8S8UQ....."
The scripts provide common command line argument parsing and help functionality.
AWS credentials are obviously required, which can provided via the command line as well, but are more easily served via environment variables or a configuration file for day to day usage, see section Getting Started with Boto for details.
validate-credentialsscript provides a convenience method to both validate the AWS credentials and display respective account/user information, which helps when juggling multiple AWS accounts.