Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create an S3 bucket and assign the following policy to make it writable by AWS programmatic billing

...

Code Block
{
  "Version": "2008-10-17",
  "Id": "Policy1335892530063",
  "Statement": [
    {
      "Sid": "Stmt1335892150622",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::386209384616:root"
      },
      "Action": [
        "s3:GetBucketAcl",
        "s3:GetBucketPolicy"
      ],
      "Resource": "arn:aws:s3:::programmaticbilling"
    },
    {
      "Sid": "Stmt1335892526596",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::386209384616:root"
      },
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::programmaticbilling/*"
    }
  ]
}

...

  1. Grant access to billing records to the app role created in Azure
  2. Obtain the OfferDurableID from the offer agreement for your enterprise by going to your subscription → Administer. Also, you should check the Currency, Locale and RegionInfo.

...

  1. AWS EC2 
    1.  "billing_bucket" property, with a value of the name of the billing bucket you created in the previous step
  2. Azure ARM requires
    1. OfferDurableID
    2. Currency, the default is "USD"
    3. Locale, the default is "en-US"
    4. RegionInfo, the default is "US"

...

  1. abiquo-billing-arm
  2. abiquo-billing-ec2

...

  1. AWS: Edit /opt/abiquo-billing-ec2/config/config.yml
    1. Abiquo database connection: user must be granted select from this host
    2. ec2-billing database: can be hosted on localhost
    3. Abiquo API: user must have Manage bills privilege

...

Edit the configuration files in config/config.yml

Create the local billing databases and import schemas

AWS:

Code Block
mysql -e "create database ec2_billing"
mysql -h -p -u ec2_billing < /opt/abiquo-billing-ec2/lib/app/schema.sql

Azure:

Code Block
mysql -e "create database arm_billing"
mysql -h -p -u arm_billing < /opt/abiquo-billing-arm/lib/app/schema.sql

...

Excerpt

Abiquo can display billing data for customers and reseller hierarchy customers on the Hybrid dashboards and on the Last bills and Estimated bill widgets for the cloud provider.

You may need to enable programmatic access to billing in your cloud provider account, and you must add a credential with billing access in the provider to Abiquo.

The platform may take up to 2 days to display data in the Estimated bill section.

Users in your reseller customer enterprises can display billing data:

  • If their enterprise has credentials (compute or billing only)

  • If their user role has the privilege to View bills

  • If the dashboards visible to the user include the Hybrid dashboard or the Last bills and Estimated bill widgets for the Azure provider. The Hybrid dashboard is included in the platform’s Default dashboard set.

Remember that each Abiquo enterprise can have credentials for one customer account/subscription only. And that you can use these credentials in one Abiquo enterprise only.

For specific instructions for each provider, see:

You can also add custom providers and data using the API, for example, for private cloud. For API resource documentation, see: