Application Cost Monitoring provides granular AWS spend tracking. This will write items from AWS Application Cost Monitoring to DynamoDB.
This requires AWS Application Cost Monitoring to be deployed first. This will subscribe to the SNS topic of that service and publish messages produced by it to DynamoDB
This can be deployed using Serverless Framework or AWS Serverless Application Repository (AppRepo). Due to limitations in AppRepo, you will need to setup the AWS Glue Crawler for Athena manually.
You must also deploy the AWS Application Cost Monitoring service first. That provides the billing report and ingestion pipeline. This repository will subscribe to the message topic provided by that service.
Clone of this repository by using Serverless Framework.
$ npm install -g serverless
$ npm install
$ serverless deploy -v
See the README and instructions at:
This service provides AWS cost and usage data in a DynamoDB table. Either query the data manually or, better, deploy a front end to search the data.