Skip to content

🚀 CLI to provision and back up AWS EC2 instances

Notifications You must be signed in to change notification settings

checkaayush/SAW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAW

Command line utility for simple AWS EC2 provisioning and backups

Disclaimer: This utility was built in 2016, way before I discovered HashiCorp's excellent tool, Terraform, which I highly recommend.

Pre-requisites

  • python 2.7.6
  • pip
  • AWS Access Key ID, AWS Secret Access Key.

Installation

  • Step 1: Run the following command and follow the prompts.

    aws configure

    This will ask you for your:

  • Step 2: Install requirements (preferably, in a virtual environment)

    pip install -r requirements.txt
  • Step 3: Install saw (from project's root directory)

    python setup.py install

Usage

saw launch --name INSTANCE_NAME ... [--id=IMAGE_ID]
saw publish --source SOURCE_INSTANCE_NAME --dest DEST_INSTANCE_NAME
saw backup --id INSTANCE_ID --name IMAGE_NAME [--desc=DESCRIPTION]
saw images [filter --name=IMAGE_NAME]
saw instances [filter [--state=INSTANCE_STATE] [--image=IMAGE_NAME] 
                             [--name=INSTANCE_NAME] [--user=USER]]
saw elastic_ips
saw -h | --help

Commands:

Command Description
launch Launches new EC2 instance(s)
publish Publish to production from staging instance
backup Create backup AMI Image from EC2 Instance
instances Lists all instances in current region
images Lists all images owned by you
elastic_ips Lists all Elastic IPs
filter Apply filter on resource

About

🚀 CLI to provision and back up AWS EC2 instances

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages