Skip to content

[WIP] A serverless implementation of a simple status server

Notifications You must be signed in to change notification settings

redroot/serverless-status-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Status Server

A serverless implementation of a simple status server that features:

  • Homepage contain all current status keys, messages and last updated time
  • Ability to filter for ok, warning, and critical statuses
  • Ability to search for specific status key
  • Ability to POST to an endpoint to update a status, using a token for auth
  • Uses DynamoDB to store statuses

By default it runs on a 'dev' stage but you can set the stage to whatever value you want.

Getting Started

If you haven't already, set up Serverless.

Local Development

  • You can test the functions locally with serverless invoke local -f list or serverless invoke local -f update PARAMS. Unfortunately the output of the list function won't tell you much as it spits out close-to-unreadable HTML.

Testing

  • There are tests!

Deployment Notes

  • When you are ready to deploy, run serverless deploy -v to deploy to the dev stage
  • You can optionially set the stage with --stage as option for the above.
  • If you want a custom domain, comment out the custom domain part in the serverless.yaml

TODO

  • add dynamodb backend and get update working with token
  • add simple autorefresh with local storage.
  • add better design
  • node prune before deploy?
  • get secret tokens for different envs
  • better docs - testing locally, deployment to stating, deployiment to production
  • tests?

TODO V2

  • Cron style status tasks within this repo with common DSL

About

[WIP] A serverless implementation of a simple status server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published