All Projects β†’ erik β†’ pension

erik / pension

Licence: MIT license
πŸŽ‰ Alert when ec2 instances are scheduled for retirement

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pension

toronto-apartment-finder
[really old and probably doesn't work] Slack bot to post relevant Toronto apartment listings from Kijiji & Craigslist
Stars: ✭ 23 (+27.78%)
Mutual labels:  slack-bot
flixctl
A toolkit for controlling the infrastructure necessary for a true MaSaS (Movies and Shows as a Service) architecture.
Stars: ✭ 43 (+138.89%)
Mutual labels:  slack-bot
Powershell-SlackBot
Powershell based Slack Bot using the Real Time Messaging API and WebSockets.
Stars: ✭ 41 (+127.78%)
Mutual labels:  slack-bot
lockbot
πŸ”’ Coordinate use of your team's shared resources, in Slack 🀝
Stars: ✭ 47 (+161.11%)
Mutual labels:  slack-bot
orpheus-bot
https://youtu.be/R8FVKVnYfY8
Stars: ✭ 17 (-5.56%)
Mutual labels:  slack-bot
slate
Self hosted Slack app for daily standups
Stars: ✭ 75 (+316.67%)
Mutual labels:  slack-bot
slack-notifier
This script will help you to send slack scheduled notification (message)
Stars: ✭ 22 (+22.22%)
Mutual labels:  slack-bot
slackotron
A plugin extensible Slack bot.
Stars: ✭ 13 (-27.78%)
Mutual labels:  slack-bot
weatherbot
❄️ β˜€οΈ ⚠️ A Slack bot that gives you a heads up about snow, nice weather, and severe weather alerts
Stars: ✭ 17 (-5.56%)
Mutual labels:  slack-bot
arXie-Bot
arXie is a Slack bot that browses and filters the arXiv repository for you
Stars: ✭ 29 (+61.11%)
Mutual labels:  slack-bot
semantic-release-slack-bot
πŸ“¦ πŸš€ A slack bot for semantic-release notifying release statuses
Stars: ✭ 92 (+411.11%)
Mutual labels:  slack-bot
botlin
Bot framework built with Kotlin
Stars: ✭ 20 (+11.11%)
Mutual labels:  slack-bot
skit
Build slack bots quickly and easily!
Stars: ✭ 45 (+150%)
Mutual labels:  slack-bot
openshift-slack-notifications
OpenShift slack notifications
Stars: ✭ 14 (-22.22%)
Mutual labels:  slack-bot
slack-uno
Play Uno in Slack!
Stars: ✭ 26 (+44.44%)
Mutual labels:  slack-bot
butterbot
Butterbot is a blazingly dumb bot written in Swift
Stars: ✭ 20 (+11.11%)
Mutual labels:  slack-bot
lbry-wunderbot
chat.lbry.io
Stars: ✭ 22 (+22.22%)
Mutual labels:  slack-bot
trevorbot
Where in the world is our team?
Stars: ✭ 12 (-33.33%)
Mutual labels:  slack-bot
timebot
πŸ€– Timebot is a Slack bot for helping with everyday timesheet
Stars: ✭ 24 (+33.33%)
Mutual labels:  slack-bot
time-recorder
Slackμ—μ„œ μ‹œκ°„ 기둝을 ν•˜κΈ° μœ„ν•΄ μ‚¬μš©λ˜λŠ” functions λͺ¨μŒ(firebase funtions)
Stars: ✭ 14 (-22.22%)
Mutual labels:  slack-bot

pension

Plan for your instances' retirement.

Pension checks for EC2 instance retirement (e.g. due to hardware failures) and other maintenance events that could cause (or be the source of) issues down the line. It is meant to be run periodically (in a cron or some such) and provide some warning before bad things happen.

Currently, pension knows how to ping a slack channel or send an email when something's broken. Additional notification methods are welcome contributions. Otherwise, parsing the JSON output format should be flexible enough for any internal notification tooling.

usage

pip install pension

pension [--dry-run] [--quiet] [--config path/to/pension.toml]

configuration

pension uses toml as its configuration language. The config file can be specified on the command line via --config. If not provided, pension will try ./pension.toml and ~/.pension.toml.

If no config file is available, pension will try to proceed using only AWS environment variables and the JSON console output.

For more information on AWS credentials, refer to the boto3 documentation.

example pension.toml

# (optional) profile names as configured in ~/.aws/credentials, defaults to
#            using boto's AWS environment variables.
aws_profiles = ["dev", "prod"]

# Enable notification via a slack message using webhooks.
# Hooks can be setup here: https://my.slack.com/services/new/incoming-webhook/
[notify.slack]
# (required)
hook_url = "https://hooks.slack.com/..."
# (optional) defaults to channel configured with webhook
channel = "#general"
# (optional) defaults to name configured with webhook
user_name = "Bad News Bot"

# Sends an email using SMTP
[notify.email]
# (required)
server = "smtp.gmail.com"
# (required) login user name
user_name = "[email protected]"
# (required)
password = "hunter2"
# (optional) defaults to the given user_name
sender = "[email protected]"
# (required)
recipients = ["[email protected]", "[email protected]"]
# (required)
subject = "Maintenance events detected for ec2 instances!"

[notify.json]
# (optional) file to write to. if not provided, will dump to stdout
file = "output.json"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].