Skip to content

ookamiinc/aws-billing-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-billing-notifier

AWS Lambda scripts for notification of aws billing.

1. Setup

Setup Python environment for development

Install pyenv

$ brew install pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

Install Python

This project is using Python 3.11 Please check the exact version in .python-version

$ pyenv install 3.11
$ pyenv global 3.11

Install pipenv

$ pip install pipenv

Or via Homebrew

$ brew install pipenv

Sync pipenv in project

$ pipenv sync --dev

Install package manager

$ brew install yarn

Setup serverless

$ yarn install
$ ./node_modules/.bin/serverless config credentials --provider aws --key 'YOUR_AWS_ACCESS_KEY_ID' --secret 'YOUR_AWS_SECRET_ACCESS_KEY'

Use below steps If you have troubles above

$ mkdir ~/.aws
$ vim ~/.aws/credentials 
[default]
aws_access_key_id=[your key here]
aws_secret_access_key=[your secret here]

2. Usage

You can set slack notification url and channel in serverless.yml.
Please modify functions.billing_estimate.events.schedule.input .
The default corn job is set on Sundays and Wednesdays.
You can also change the frequency.

2. Deploy

Make sure you pull recent changes.

$ ./node_modules/.bin/serverless deploy --verbose --stage dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages