0

Basically, is there any way of doing this [1] via API or AWS CLI?

I need to automate this for new accounts being set-up, and would like to avoid having to log in to each one of them to enable it.

Regards.

[1] http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/configurecostallocreport.html#allocation-report

scetoaux
  • 1,289
  • 2
  • 12
  • 26
  • 1
    Are you looking for something like [`PutReportDefinition`](http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/operations.html) in the Billing and Cost Management API? If `DescribeReportDefinitions` will fetch an existing one, then that should be something you can reuse. – Michael - sqlbot Jul 21 '17 at 12:14
  • @Michael-sqlbot yes, that is it! Thanks. – scetoaux Aug 03 '17 at 10:02

1 Answers1

0

As Michael - sqlbot pointed out, the programmatic way of doing this is via AWS Billing and Cost Management API.

In fact, per comment in AWS documentation, detailed billing and month allocation reports are in the path of deprecation.

scetoaux
  • 1,289
  • 2
  • 12
  • 26