Serverless HTTP(S) endpoint healthcheck
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
configExample
src
.gitignore
LICENSE
README.md
package-lock.json
package.json
serverless.yml
source-map-install.ts
tsconfig.json
tslint.json
webpack.config.js

README.md

Endpoint Healthcheck

╭─────╮           | |__   ___  __ _| | |_| |__   / __\ /\  /\/__\/ __\ /\ /\
│ c r │           | '_ \ / _ \/ _` | | __| '_ \ / /   / /_/ /_\ / /   / //_/
│ n n │ cronn     | | | |  __/ (_| | | |_| | | / /___/ __  //__/ /___/ __ \ 
╰─────╯           |_| |_|\___|\__,_|_|\__|_| |_\____/\/ /_/\__/\____/\/  \/ 

This serverless function checks the health of multiple HTTP(S) endpoints. It

  • checks HTTP(S) endpoint availability, return code, and content
  • is configurable by a JSON file stored on S3
  • runs as cron job once per minute
  • publishes notifications to SNS, so you can get mail notifications
  • saves state on S3
  • costs only a few cents per month.

Setup

Deploy the serverless function: serverless deploy --stage [dev, prod, ...] --s3bucket [your bucket name here]

Done!

Info: The default AWS region is eu-central-1.

Test Locally

serverless invoke local -f healthcheck --s3bucket [your bucket name here]