Skip to content

App Engine scheduled script to create backup images of EC2 Instances

License

Notifications You must be signed in to change notification settings

renanivo/cloudsnap

Repository files navigation

CloudSnap Build Status

A python 2.7 Google App Engine (GAE) script to create images (AMIs) from all of your Amazon EC2 instances.

Configuration

settings.py

Copy settings.example.py to settings.py and fill:

  • Your AWS account key (AWS['key'])
  • Your AWS account secret (AWS['secret'])
  • Your GAE's administrator email (LOGGER['sender'])
  • Your email to receive logs (LOGGER['to'])

Obs: lacks a configuration wizard.

app.yaml

Since cloudsnap is already taken (by me) you will need to replace the application name with something else. Remember to signup for an GAE Account and verify the availability of the application name.

cron.yaml

The cron.yaml is configured according to my needs. Feel free to change the scheduling and timezone according to yours.

Deploying

Download GAE python SDK and follow application upload instructions.

Development Environment

To set up the project on your development environment, follow these steps:

  • Download the APP Engine SDK

  • Move the SDK folder to /usr/local/google_appengine (the google_appengine folder may be anywhere. If you place it elsewhere take a look at Makefile and replace the path to run the unit tests)

  • Install virtualenv and virtualenvwrapper:

    sudo pip install virtualenv
    sudo pip install virtualenvwrapper
  • Clone the project

    git clone https://github.com/renanivo/cloudsnap.git
  • Create a new virtualenv on the project folder:

    virtualenv --no-site-packages cloudsnap
  • Go to the project folder and execute:

    add2virtualenv cloudsnap
    make setup

About

App Engine scheduled script to create backup images of EC2 Instances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages