binbashar / le-tf-infra-aws

Terraform code for Leverage Reference Architecture for AWS, designed under optimal configs for the most popular modern web and mobile applications needs.
https://www.binbash.co/leverage
Apache License 2.0
24 stars 7 forks source link

Costs reporting tool #529

Closed joseapeinado closed 6 months ago

joseapeinado commented 10 months ago

Describe the Feature

Create a Costs Reporting Tool based on Lambda to fetch Costs Explorer information across accounts. The main goal is schedule the function every 1st of month to gather the costs associated to the past month, and compare them with the latter month. The costs will be shown in HTML tables to ease the readability and will be sent to a comma-separated list of emails. Would be nice add the next features:

Expected Behavior

Notify through the chosen channels the costs associated tho the past two months and its variations.

Use Case

Due to the least privilege principle, not all users have access to Billing services. Using this tool, we can notify costs info to target audiences that maybe don't need even access to the AWS Console, but indeed need to know how the resources and costs are behaving.

Describe Ideal Solution

A costs report sent every 1st of month

Alternatives Considered

At this moment AWS don't allow this programatic reporting tool

Additional Context

exequielrafaela commented 6 months ago

@joseapeinado before closing this issue could we configure the following emails in order to receive the port?