0.1.0 • Published 5 years ago

check-ec2-event v0.1.0

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

check-ec2-event

npm version npm.io

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. npm.io

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

0.1.0

5 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago