On Amazon's Programmatic Billing Access page is a link to Sample Code and Libraries which links to the Ruby SDK. However, I see no mention of accessing billing information via the Ruby SDK. Is it currently possible? If not, is there some example using any of the AWS SDKs for getting billing information?
Edit: this question looks similar. I found this Ruby gem but it looks like you do the calculation yourself so it's still an estimate. I want the exact costs for my particular servers so I don't have to keep track of what factors affect Amazon's pricing.
Looks like programmatic billing just puts a file in an S3 bucket that you specify. I'm waiting for the first file in the right format to appear with some billing data, but I've written the following using the Fog gem: