Serverless Application for notifies AWS billing to slack.
- awscli
- docker 19.03.0
- docker-compose
- node/npm
- python 3.8
- pip
- pipenv
- serverless framework
- slack webhook url
Requires the IAM user granted the AdministratorAccess
or the IAM user granted the appropriate permission.
% aws configure --profile foobar
- Create
.env
- Create the docker image n container
- Create a new Bash session in the container
- Introduction
- Invoke
1:
Define the following variables to .env
.
- AWS_PROFILE
- WEBHOOK_URL
2:
% make up
3:
% make exec
4:
% npm i
% pipenv install -r requirements.txt
5:
% pipenv shell
% make invoke-local
- Export the environment variables
- Introduction
- Invoke
1:
% export AWS_PROFILE=foobar
% export WEBHOOK_URL='https://hooks.slack.com/services/T00/B00/XXX'
2:
% npm i
% pipenv install -r requirements.txt
3:
% pipenv shell
% make invoke-local
Deploys your entire service:
% make deploy-dev # to development
% make deploy-prd # to production.
Deploys an function:
% make deploy-func-dev # to development
% make deploy-func-prd # to production
Invokes deployed function:
% make invoke-dev # of development
% make invoke-prd # of production
% make rm-dev # from development
% make rm-prd # from production
This software is released under the MIT License, see LICENSE.