🛑 Instancestop is a simpler alternative to AWS Instance Scheduler to easily configure ec2 stop schedules
Built with ❤ by FieldControl and contributors - We are hiring
Because sometimes we forget ec2 instances running, and it cost us money 💸
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
- 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.
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!