Skip to content

🛑 Instancestop is a simpler alternative to AWS Instance Scheduler to easily configure ec2 stop schedules

License

Notifications You must be signed in to change notification settings

FieldControl/instancestop

Instancestop

🛑 Instancestop is a simpler alternative to AWS Instance Scheduler to easily configure ec2 stop schedules

Field Control ♥ Continuous Integration Maintainability serverless Commitizen friendly

Built with ❤ by FieldControl and contributors - We are hiring

Why

Because sometimes we forget ec2 instances running, and it cost us money 💸

💙

Usage

1 - The first step is to clone this repository:

git clone https://github.com/FieldControl/instancestop.git

2 - Configure instances you would like to stop at config.json:

[{
    "region": "us-east-1",
    "instanceIds": [
        "i-00879a71220ef415c"
    ]
}]

3 - Configure when instancestop should run on serverless.yml:

events:
  - schedule:
      name: instancestop-stop-ec2-evening
      description: 'Instancestop AWS CloudWatch trigger to stop instances'
      rate: cron(0 21 ? * * *) # <--- use cron syntax 
      enabled: true

4 - Deploy

npm install -g serverless # if not installed
sls deploy
💙

Pull Requests

  • Add tests! Your patch won't be accepted if it doesn't have tests.
  • Document any change in behaviour. Make sure the README and any other relevant documentation are kept up-to-date.
  • Create topic branches. Don't ask us to pull from your master branch.
  • One pull request per feature. If you want to do more than one thing, send multiple pull requests.
💙

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.





Open source, from Field Control with ❤ - We are hiring!

About

🛑 Instancestop is a simpler alternative to AWS Instance Scheduler to easily configure ec2 stop schedules

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks