53
Sousie
Website health checker working on AWS Lambda
Install
Install aws-cli
# Install pip
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py
# Install aws-cli
pip install awscli
# or
pip install -r ./requirements.txt
# then
aws configure
Install Apex
# On macOS, Linux, or OpenBSD run the following:
curl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh
Clone
# git clone
git clone git@github.com:53ningen/sousie.git
cd sousie
Config
Configure IAM Role
Copy project.json.template to project.json
cp ./project.json.template ./project.json
place your IAM Role into role
"role": "arn:aws:iam::***********:role/example",
Configure application
Copy config.json.template to config.json and edit it
cp ./config.json.template ./config.json
user-agent(string): User-Agent headeritems(array): health check target itemsmethod(string):GET,POST,PUT,DELETE,HEAD...url(string): health check target urlport(number): health check target porttimeout_millisec(number): request timeout (ms)
slack(object, optional)notify-on-success(boolean): enable success notificationwebhook_url(string): slack incomming webhook urlchannel(string): notification target channel (ex:#random)username(string): username of slack notificationicon_emoji(string): user icon of slack notificationmention_targets(array): if you want to receive mention, place the account of slack
Deploy
yarn install
yarn build
apex deploy
Invoke
apex invoke alive
Test
yarn test
Author
gomi_ningen (@53ningen)
License
MIT
Special Thanks
Queen Soucie Elnea Ortlinde
On this page
Languages
JavaScript100.0%
Contributors
MIT License
Created January 17, 2018
Updated September 30, 2019