check-ec2-event

0.1.0 • Public • Published

check-ec2-event

npm version

Overview

Tools of checking AWS EC2 maintenance event

Description

This tool checks scheduled maintenance events of your AWS EC2 instance, and notify to your slack channel.

Requirement

  • Node.js 8.x

Install

$ npm i check-ec2-event
$ cd node_modules/check-ec2-event

or

$ git clone git@github.com:kitakitabauer/check-ec2-event.git
$ cd check-ec2-event
$ npm i

Run on local

  1. Add your environment variables to .env file.
REGION = "your AWS region"
FUNCTION_NAME = "your AWS Lambda function name"
WEBHOOK_URI = "your incoming webhook url of slack"
SLACK_CHANNEL = "slack channel that you want to notify"
SLACK_ICON_EMOJI = "icon emoji of notification bot"
SLACK_USERNAME = "user name of notification bot"
  1. Execute npm run.
$ npm run local

Run on AWS Lambda

  1. Prepare an empty Lambda function in advance at your AWS console.
  2. It compiles and deployes scripts including node_modules in zip format, but aws-cli is required.
$ ./zipDeploy.sh [Lambda function name]
  1. Run it from your AWS account or aws-cli.

License

MIT

Author

kitakitabauer

Readme

Keywords

Package Sidebar

Install

npm i check-ec2-event

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

5.58 kB

Total Files

6

Last publish

Collaborators

  • kitakitabauer