Giter Site home page Giter Site logo

aws-ami-auto-backup's Introduction

AWS-AMI-Auto-Backup

Shell Script to auto make AMI backup and delete old backups.

Pre-request

  1. You need install AWS tools at your system.
    You can use yum install aws* to install all require packages.
    And please make sure your AWS tools install path is same with this script path.
  2. Please use "env | grep EC2_HOME" to find out your system's setting.
  3. Please use "env | grep JAVA_HOME" to find out your system's setting.
  4. Please add IAM role with appropriate permissions and launch instance with this IAM Role.
    If you are not familiar with IAM Role, you can create a admin IAM Role for quick use.

Shell Scripts vairables

  1. region: Reference http://docs.aws.amazon.com/general/latest/gr/rande.html
  2. instanceID: You can find your instance ID at AWS Manage Console
  3. amiNamePrefix: Your prefer AMI name prefix
  4. amiDescription: Your prefer AMI description
  5. routine: If you want to keep 7 days AMI backups, please set this variable true otherwise set it false.

About routine

  1. If you set routine false, this script will delete all your exist AMIs and Snapshots.
  2. If you set routine true, AMI name will be $amiNamePrefix+$weekday.
    for example, if you set $amiNamePrefix as "My AMI Backup " and set routine true.
    then your AMI name will be "My AMI Backup Mon" (without quotation marks).

aws-ami-auto-backup's People

Contributors

henrychen95 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.