aws billing information using aws java sdk

后端 未结 5 1050
不知归路
不知归路 2020-11-29 10:32

I\'m trying to get the billing information from aws for ec2 instances, s3 buckets and ebs volumes using java api. I want to create api that gives specific entity wise hourly

5条回答
  •  北海茫月
    2020-11-29 11:17

    There are no APIs to get AWS billing information. Instead what you can do is:

    1. Turn on the detailed billing report (from dashboard)
    2. Configure what kind of billing reports you want
    3. AWS will start pushing billing info as CSV files to a (pre)configured bucket several times an hour
    4. Use REST API or S3 Java API to get the information from the bucket when needed.

    For more information: See here

提交回复
热议问题