AWS billing information using AWS java sdk

+1 vote

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 billing reports. Is there any java api for getting the same? I couldn't find the same in aws java sdk api documentation.

Jul 26, 2018 in AWS by bug_seeker
• 15,320 points
80 views

1 answer to this question.

0 votes

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.

answered Jul 26, 2018 by Priyaj
• 56,200 points

Related Questions In AWS

+3 votes
4 answers
+1 vote
1 answer

Create S3 bucket using Java AWS SDK

Hey @Anjali, Creating a bucket using Java AWS-SDK ...READ MORE

answered Jan 23 in AWS by Priyaj
• 56,200 points
123 views
0 votes
1 answer

How to create a EMR Cluster using Java AWS SDK?

The Java code for creating an EMR ...READ MORE

answered Feb 27 in AWS by Priyaj
• 56,200 points
83 views
+3 votes
3 answers
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
110 views
0 votes
1 answer
0 votes
2 answers

Launching an EC2 Instance using AWS SDK Java

package com.ec2application.ec2application; import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.regions.Regions; import com.amazonaws.services.ec2.AmazonEC2; import ...READ MORE

answered Jan 22 in AWS by Priyaj
• 56,200 points
369 views
0 votes
1 answer

Stopping EC2 Instance using Java AWS SDK

You can follow the following steps:- 1. Create ...READ MORE

answered Jan 22 in AWS by Priyaj
• 56,200 points
74 views