hajowieland / ruby-slack-aws-ec2-instances-running

Post to Slack currently active AWS EC2 instances in all regions. With Lambda function code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ruby-slack-aws-ec2-instances-running

Very simple Ruby script to play around with the aws-sdk

Posts to Slack the currently active AWS EC2 instances in all regions.

Lambda function included

Requirements

  • Configured Slack Bot and its API Token
  • environment variable SLACK_API_TOKEN set to Bot API Token export SLACK_API_TOKEN=yourapitokenhere
  • Change channel to your prefered Slack Channel (defaults to #general )

About

Post to Slack currently active AWS EC2 instances in all regions. With Lambda function code.

License:GNU General Public License v3.0


Languages

Language:Ruby 100.0%