Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamataryo/aws-billing-alert
https://github.com/kamataryo/aws-billing-alert
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kamataryo/aws-billing-alert
- Owner: kamataryo
- Created: 2019-05-06T12:31:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T03:02:05.000Z (6 months ago)
- Last Synced: 2024-07-09T06:16:36.892Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.27 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Billing Alert
![social](./socials/ogp.png)
This is a stack of AWS billing alert functions built with [Serverless](https://serverless.com/).
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
- Enable `Cost Explorer` for the targeted AWS account
https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html#turning_on_billing_metrics## Deploy
```shell
$ git clone [email protected]: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
```shell
$ node ./src/monthly.mjs --exec
$ node ./src/daily.mjs --exec
```