Serverless function to manage your Status Cake tests.
Because Status Cake's API isn't idempotent (it'll keep creating new tests for the same endpoint), so Bakery keeps track of what you have created and can update tests too.
- Clone the repo git@github.com:samjeffress/bakery.git or
sls install -u https://github.com/samjeffress/bakery
- Setup your Status Cake variables in your environment variables:
STATUS_CAKE_API_KEY
STATUS_CAKE_USER
- Make sure your AWS Credentials are setup - serverless aws credentials
sls deploy
Hooray!
You probably want to add an api key to your API Gateway service.
To add a new check:
POST to /statuscheck
{
"stackName":"cats",
"endpoint":"https://google.com?cats"
"contactGroup":"contact group to be alerted", ## Optional
"tags":"list,of,tags,to,put,onyour,alert" ## Optional
}