AWS Billing Alert

social

This is a stack of AWS billing alert functions built with Serverless. Once deployed, notifications would be delivered to a slack channel when the total cost exceeds specified threshold values. The scanning interval is once a day. Also monthly report will be delivered at the end of month.

Prerequisite

Deploy

$ git clone git@github.com:kamataryo/aws-billing-alert.git
$ cd aws-billing-alert
$ yarn # or npm install
$ cp .envrc.sample .envrc # Please fill the values
$ vi .envrc
$ source .envrc
$ npm run deploy

Customization

See .envrc.sample and serverless.yml.

Run Locally

$ node ./src/monthly.mjs --exec
$ node ./src/daily.mjs --exec