Giter VIP home page Giter VIP logo

lambda-awscostreporter's Introduction

AWS Cost Report

This tool will collect and create Daily & Monthly AWS cost reports and put them into Slack

The format should be like this

<date> - Amazon Elastic Compute Cloud (Instance1): $<value>
<date> - Amazon Elastic Compute Cloud (Instance2): $<value>
<date> - Amazon Elastic Compute Cloud (InstanceN): $<value>
<date> - Amazon EC2 Container Registry (ECR): <value>
<date> - Amazon Simple Storage Service: $<value>
<date> - AWS Key Management Service: $<value>
<date> - AWS Data Pipeline: $<value>

Total Spent: <value>

Before Start

This tool uses a specific file that is generated by AWS. To activate the generation, you should activate the Detailed billing report with resources and tags

Recomendations

In order to fully take advantage of the potential, you should Tag your resources accordingly, otherwise you will see a lot of this

<date> - Amazon Elastic Compute Cloud (): $<value>

Installation & Run

After cloning the code, you just need to run

## To install npm packages
npm i

## To run Daily Report
npm run report:daily

## To run Monthly Report
npm run report:monthly

Neccesary envars

SLACK_URL: This is the Slack URL that will be used to make the post to. Format https://hooks.slack.com/services/<hash>/<hash>/<hash>

AWS_ACCOUNT_ID: AWS account ID. This envar will be used to download the report file

SLACK_CHANNEL: Target channel for the notification

COST_REPORTS_BUCKET: The bucket in which the report will be placed by AWS

lambda-awscostreporter's People

Contributors

matiasdecarli avatar agar3s avatar

Stargazers

Shun Kakinoki avatar Prakash Reddy avatar Alex Negulescu avatar Rodolfo Wilhelmy avatar Javier De Carli avatar nnao45 avatar  avatar Bill Agee avatar Huy Tran avatar Simon Escobar Benitez avatar Mario IC avatar Andrés Lastra avatar Jacques Tardie avatar  avatar

Watchers

Orlando Nuske avatar  avatar James Cloos avatar  avatar Jobelo Andres Quintero Rodriguez avatar Dario Lipartiti avatar

lambda-awscostreporter's Issues

Do not use column number, get the column name instead

We're using this to obtain the resource name

Amazon Elastic Compute Cloud (' + line[24] + ')

Which is wrong, because AWS usually change the column numbers to adds stuff. We should get which column is the one that has the resource (header has the title user:Name)

More granularity

We're seeing this kind of stuff

Amazon Elastic Compute Cloud (): $<...>

Untagged resources maybe? 🤔

Explore the charge "Amazon Elastic Compute Cloud"

To see the instance usage we are filtering by Amazon Elastic Compute Cloud && RunInstances, but we are still missing some granularity on Amazon Elastic Compute Cloud since we have some costs hidden behind the concept. For example

<edited>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.