AWS Lambda scripts for notification of aws billing.
$ brew install pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
This project is using Python 3.6 Please check the exact version in .python-version
$ pyenv install 3.6
$ pyenv global 3.6
$ pip install pipenv
Or via Homebrew
$ brew install pipenv
$ pipenv sync --dev
$ brew install yarn
$ yarn install
$ ./node_modules/serverless/bin/serverless config credentials --provider aws --key 'YOUR_AWS_ACCESS_KEY_ID' --secret 'YOUR_AWS_SECRET_ACCESS_KEY'
$ mkdir ~/.aws
$ vim ~/.aws/credentials
[default]
aws_access_key_id=[your key here]
aws_secret_access_key=[your secret here]
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.
Make sure you pull recent changes.
$ ./node_modules/serverless/bin/serverless deploy -v --stage dev