amit singh
amit singh

Reputation: 219

List all AWS billable resources

Is there any way to list all the billable resources (basically EC2,EBS,RDS) in an AWS account.Is there any aws-cli command or script available to do so.

I have the aws account root access.

Upvotes: 2

Views: 2845

Answers (1)

Erico
Erico

Reputation: 1471

Unfortunately it's not possible to retrieve billing details for AWS resources via AWS CLI directly.

What you can do is store billing reports on S3 and then you can programmatically read and analyze those reports that are generated in CSV format (Billing -> Preferences).

Reference: http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-reports.html#turnonreports

Upvotes: 1

Related Questions