Refactoring the old AWS generate_report() to make it maintainable. We are now leverage the AWS Cost Explorer API to generate the necessary information for Accounts, Services, and various Usage Types. Cost Explorer doesn't support resource-level queries, so we still use the AWS billing report CSV for that.
This significantly reduces the logic that we need to maintain on our end, and makes understanding what's going on far easier.
Refactoring the old AWS
generate_report()
to make it maintainable. We are now leverage the AWS Cost Explorer API to generate the necessary information for Accounts, Services, and various Usage Types. Cost Explorer doesn't support resource-level queries, so we still use the AWS billing report CSV for that.This significantly reduces the logic that we need to maintain on our end, and makes understanding what's going on far easier.