Monitoring target endpoint health every 5 minutes.
Send notification via slack webhook, only if target state changed.
NOTE: DO NOT make too much access to any endpoint.
- Node.js 20.x
- yarn
- aws profile
Install dependencies using yarn.
$ yarn install
Create config.yml
.
aws_profile: # aws profile name
target_endpoint: # target endpoint
slack_webhook_url: # see https://api.slack.com/incoming-webhooks
dynamo_db_table: # DynamoDB table name
Deploy Lambda function using serverless.
$ yarn deploy
# aws resouces will be created or updated