Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Python package for operating cross region AWS resources
Python

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
botocross
.gitignore
LICENSE
README.md
authorize-securitygroups.py
bootstrap-ec2-windows-userdata.txt
bootstrap-windows-eu-west-1.sh
create-buckets.py
create-images.py
create-securitygroups.py
create-snapshots.py
create-stacks.py
create-topics.py
decode-logs.py
delete-buckets.py
delete-images.py
delete-keypairs.py
delete-keys.py
delete-securitygroups.py
delete-snapshots.py
delete-stacks.py
delete-topics.py
describe-images.py
describe-instances.py
describe-regions.py
describe-securitygroups.py
describe-snapshots.py
describe-stacks.py
describe-tags.py
describe-volumes.py
import-keypairs.py
read-buckets.py
revoke-securitygroups.py
setup.py
subscribe-topics.py
update-stacks.py
upload-keys.py
validate-credentials.py
validate-template.py

README.md

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.

Requirements

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

Installation

  1. Mac OSX 10.06 (Snow Leopard)
    • Ensure /usr/bin/python --version gives Python 2.7 +
    • sudo pip install boto argparse
    • Add the following to your ~/.bash_profile export AWS_ACCESS_KEY_ID="AKIAI....." export AWS_SECRET_ACCESS_KEY="oF8S8UQ....."

Usage

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.

  • The validate-credentials script provides a convenience method to both validate the AWS credentials and display respective account/user information, which helps when juggling multiple AWS accounts.
Something went wrong with that request. Please try again.