Code Monkey home page Code Monkey logo

aws-startstop's Introduction

Deprecated

This is now deprecated and won't be developed further. Use the following solution by AWS: https://aws.amazon.com/answers/infrastructure-management/instance-scheduler/

Start-stop service

This service was created to automatically stop the development resources during nights and weekends so you don't have to pay for their use.

There's a regular schedule for triggering a Lambda script that checks all the resources for Nightly tag key. The value is UTC offset which allows you to set when people using them are in work.

Deployment

Configuration

For now only statically defined start and stop hours. Start at 7 and stop at 18. Can be changed by rewriting the script.

Usage

Tag the supported resource with key Nightly. Use the required timezone offset as value. For example:

Key Value Timezone Running time (UTC)
Nightly 0 UTC 7-18
Nightly +1 CET 8-19
Nightly -6 ETZ 1-12

If there are multiple teams using the resource, you can use multiple offsets separated by comma. If there's at least one offset that matches the running hours of resource during the check, it's left running.

Key Value Timezone Running time (UTC)
Nightly 0,+1 UTC and CET 7-19

Supported services

  • EC2 (outside ASG)

Planned development

  • CloudFormation deployment
  • support more services (RDS, ASG...)
  • configuration in DynamoDB
  • be stateful (don't start what wasn't running)
  • tests

aws-startstop's People

Contributors

msusta avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

raji999

aws-startstop's Issues

Config in DynamoDB

Provide a possibility of dynamic configuration by rewriting default parameters. Get the values from CloudFormation parameters.

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.