Simple health checker lambda with ClojureScript, shadow-cljs and Serverless Framework. Can alert via email or SMS using AWS Simple Notification Service.
On a Mac you can install node easily with Homebrew.
$ brew install node
$ npm install
$ npm run deploy
See serverless.yml
for configuration options.
You need to verify 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.
SES setup is not required if sms
delivery method is used instead of email
.
See AWS Lambda docs on cron and rate syntax and edit trigger in serverless.yml
accordingly.