Code Monkey home page Code Monkey logo

lambda_aws_scheduler's Introduction

lambda_aws_scheduler

Stop and start server instances according to schedule via lambda and terraform

Prerequisites

  • Terraform

  • Python 2.x. For windows need a python env installed as per

http://www.tylerbutler.com/2012/05/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/

  • For Windows: a bash client to run deploy.sh (can get from git for windows )

Install

  • in a command windows go to the directory

  • ./deploy.sh (builds the zip file for lambda)

  • terraform apply (run terraform to deploy)

Options

  • if you set the code 'create_schedule_tag_force = True' in the 'aws-scheduler.py' script it with create a default schedule tag for each instance it finds.

  • Other options are in the 'aws-scheduler.cfg' file.

  • time can be local or gmt.

Usage

  • It works by setting a tag (default name schedule) to a json string giving the stop and start time hour for each day.

lambda_aws_scheduler's People

Contributors

neillturner avatar

Stargazers

AZEMA Mickaël avatar

Watchers

 avatar James Cloos avatar

Forkers

mrwlad

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.