Display Amazon billing data
This section describes how to configure Amazon billing data for resellers. For standard accounts see Display Amazon billing data for standard accounts
To configure AWS to supply billing data, do the following steps.
Create an S3 bucket, for example, "costandusagebillingreport"
- Within the bucket, create a folder where AWS will store your reports. Give it the name of your report, for example "costandusagebillingreport"
Note the billing bucket name, for example, "costandusagebillingreport"
- Create a new user, such as "programmaticbilling" to create the reports
- Assign the AmazonS3ReadOnlyAccess policy
Activate the IAM user's access to billing information. See https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/control-access-billing.html
Optionally configure legacy billing reports
Go to Billing → Billing preferences
Open the Detailed Billing Reports [Legacy] section
Select the option to Turn on the legacy Detailed Billing Reports feature to receive ongoing reports of your AWS charges
Click Configure and enter your S3 bucket details
- Select all of the available reports including
- Monthly report
- Detailed billing report
- Cost allocation report
- Detailed billing report with resources and tags
Click Save preferences
Configure Cost & Usage Reports
Go to Cost & Usage Reports
Enter the Report name, which you will need to enter in Abiquo later, then click Next
- Click Configure and select the S3 bucket. Click Next, then select I have confirmed that this policy is correct.
- By default, Amazon will put the reports in a folder with the name format "/report-name/date-range/". Note this as the value for the report prefix in Abiquo. Click Next
- Review your configuration and check that the following parameters are set:
- bucket name
- path (folder/subfolder)
- time detail: Hourly
- GZIP or ZIP format
The AWS account with credentials to use in Abiquo should have the following permissions
Type Privileges Resources Price list Full access All resources S3 Full: list, read Multiple
To configure billing dashboards in Abiquo for resellers, do these steps.
- The Abiquo users should have the privileges to Display hybrid dashboard tab, View bills, and optionally to Display VM cost view widget (hybrid tab)
In Abiquo, edit the reseller enterprise and create the following enterprise properties
Property Description Previous name Migration for v5.2.0 amazon_bucket Name of the S3 bucket where Amazon stores billing data.
Change value for v5.2.0. This was previously reseller ID in the yaml configuration file.
billing_bucket Enter the new value amazon_report_name amazon_bucket/amazon_bucket_prefix/amazon_report_name/file.csv report_name amazon_bucket_prefix amazon_bucket/ amazon_bucket_prefix /amazon_report_name/file.csv report_prefix amazon_billing_compress_format
Compression format of the billing report file: ZIP or GZIP
- amazon_price_factor Default provider markup for customer enterprises with no value - amazon_mpa Set to "dedicated" or "no" to use blended costs.
If not present or "shared", use unblended costs- amazon_discount Discount you have agreed on with Amazon. Typical values are 0.03, 0.02 or similar. - In Abiquo, edit the enterprises of the customers of the reseller and create the following property. You can also set the default value in the reseller.
Property
Description
Previous name Migration for v5.2.0 amazon_price_factor Markup or discount applied by the partner to their customer.
The default value is 1.-
Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved