brunoxd13 / aws-monthly-billing-slack-bot

Send AWS monthy summary billing in a slack channel via webhook.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS monthly billing slack bot

Send AWS monthy summary billing in a slack channel via webhook.

Example of message

This is an example of message send in Slack:

logo


Getting Started

Prerequisites

To perform the project installation you need to have a package manager installed in your environment, such as the following:

Installing process

Cloning the project

git clone https://github.com/brunoxd13/aws-monthly-billing-slack-bot.git

cd aws-monthly-billing-slack-bot

Instaling the project

Install project depencencies:

npm install

pip install pipenv

Create .env file

Define environment variables to work correctly, eg.:

SERVICE_QUANTITY=5
LOW_COST=70
HIGH_COST=100

Or just rename file .env-example to .env.

Configure Slack

Create an incoming webhook on slack.

Deploy

IMPORTANT: Configure the serverless file whith with your provider credentials. You can use this guide.

Deploy the project to your AWS account with the following command:

npm run deploy -- --slack_url="<slack_webhook_url>"

Author

Bruno Russi Lautenschlager

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Send AWS monthy summary billing in a slack channel via webhook.

License:MIT License


Languages

Language:Python 100.0%