Terraform code for Leverage Reference Architecture for AWS, designed under optimal configs for the most popular modern web and mobile applications needs.
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:
Notifications to slack
Add the capability to pass up to 3 costs allocation tags as an ENV variables to get the costs associated and calculate the weight of its costs on the past month.
Upload the report to S3 bucket
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
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