Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vharmain/serverless-healthcheck
Simple health checker lambda with ClojureScript, shadow-cljs and Serverless Framework
https://github.com/vharmain/serverless-healthcheck
aws-lambda clojurescript serverless-framework shadow-cljs
Last synced: 3 months ago
JSON representation
Simple health checker lambda with ClojureScript, shadow-cljs and Serverless Framework
- Host: GitHub
- URL: https://github.com/vharmain/serverless-healthcheck
- Owner: vharmain
- Created: 2019-10-24T16:06:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T11:50:19.000Z (almost 2 years ago)
- Last Synced: 2023-03-09T22:27:43.832Z (almost 2 years ago)
- Topics: aws-lambda, clojurescript, serverless-framework, shadow-cljs
- Language: Clojure
- Size: 631 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-healthcheck
Simple health checker lambda with ClojureScript, shadow-cljs and Serverless Framework. Can alert via email or SMS using AWS Simple Notification Service.
![Screenshot of alert SMS message](img/screenshot.jpg)
## Prerequisites
* [node](https://nodejs.org/en/download/)
On a Mac you can install node easily with [Homebrew](https://brew.sh/).
``` shell
$ brew install node
```## Install dependencies
```shell
$ npm install
```## Deploy
```shell
$ npm run deploy
```## Configuration
See `serverless.yml` for configuration options.
## SES email setup
You need to [verify](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses-procedure.html) sender and recipient email addresses in order to send email through SES. If you want to send emails to non-verified recipients you need to [move out of the sandbox](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html).
SES setup is not required if `sms` delivery method is used instead of `email`.
## Set invoke schedule
See [AWS Lambda docs on cron and rate syntax](https://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html) and edit trigger in `serverless.yml` accordingly.