Thursday, October 18, 2012

How to get the billing details of AWS

I was searching ..searching ... whole night for an JAVA API which provides me the AWS EC2/S3/SNS/RDS  account's billing details ... but couldn't ..!!

Finally I came to CLI Tools ... !!  Command LIne Tools ..!!

Anyone can access the billing details using this CLI tools very easily ..as given below!!

1) To show the all available metrics!!

mon-list-metrics --headers  --I ACCESS_KEY --S SECRET_KEY




2) To show the available metrics regarding the billing with details!!

mon-list-metrics --namespace 'AWS/Billing' --I ACCESS_KEY --S SECRET_KEY



Anyone can download the CLI Tools from the Amazon's website, the direct link is: CloudWatch-CLI-Tools

Fun to be coding!

No comments:

Post a Comment

Popular Posts