VMware Tanzu CloudHealth supports AWS S3 and Alibaba Object Storage Service (OSS) buckets to access the Alibaba cloud bills. You need to upload the bills in the AWS S3 bucket and grant the Tanzu CloudHealth platform access to the bucket.
Configure AWS S3 bucket to upload files that represent your ongoing usage and spend.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*"
],
"Resource": [
"arn:aws:s3:::alicloud-instance-bill-bucket/*",
"arn:aws:s3:::alicloud-instance-bill-bucket"
]
}
]
}
To create a read-only IAM role within the AWS Console for the target account:
Note -
After creating the Data Connect config, bills should be uploaded to s3 bucket folders in the following structure manner. Path: AliCloud/123455667/2021-10/Daily/123456667_BillingItemDetail_20210709.zip
For Partner customers, it is recommended to set up one single storage location to add different folders per channel customer with one data connect config per channel customer.
Configure Alibaba Cloud Object Storage Service to upload files that represent your ongoing usage and spend.
A RAM role is required for Tanzu CloudHealth to allow cross-account access. Use the Tanzu CloudHealth Alibaba Cloud account as the trusted account to create a RAM role for Tanzu CloudHealth.
5494807867140617
, which is the Tanzu CloudHealth Alibaba Cloud account ID. Pre-requisite :
Establish a Trusteeship between your master account and linked account. For more information, see Usage notes on the trusteeship.
Click Customize Column Options and select all the mandatory columns that Tanzu CloudHealth requires to process Alibaba Cloud bills.
List of mandatory columns | |||
---|---|---|---|
Billing Cycle | Payment Time | Deducted By Resource Package | Instance Config |
Cost Center | Usage Start Time | Pretax Gross Amount | Instance Spec |
Account ID | Usage End Time | Invoice Discount | Internet IP |
Account Name | Service Duration | Deducted By Coupons | Intranet IP |
Owner Account ID | Order No./Bill No. | Currency | Region |
Owner Account Name | Item | Duration Unit | Zone |
Product Code | Billing Type | Deducted By Reserved Instance | Billing Item |
Product Name | Instance ID | Discount Name | List Price |
Product Type | Instance Name | Item Discount | List Price Unit |
Product Detail | Resource Group | Portfolio Discount | Usage |
Subscription Type | Instance Tag | Billing ID | Usage Unit |
After selecting the mandatory columns, click Export Billing Overview (csv) to generate bills. You will be redirected to the Bill Export record.
Rename the downloaded file before you upload it to the S3 bucket created for Tanzu CloudHealth.
Refer to the following format to rename the file containing Alibaba Cloud bill. accountId_BillingItemDetail_yyyymmdd.csv
Where,
accountId
is 16 digit account id of your Alibaba bill account. For example, 1234567890112233yyyymmdd
is billing date. For example, 20230404.1234567890112233_BillingItemDetail_20230404.csv
If there are multiple bill files for a single day, then refer to the following format to rename the file containing Alibaba Cloud bills. account-id_BillingItemDetail_yyyymmdd_x.csv
Where,
accountId
is 6-digit account id of your Alibaba bill account. For example, 1234567890112233,yyyymmdd
is billing date. For example, 20230404,X
is a number given to the downloaded bill.1234567890112233_BillingItemDetail_20230404_1.csv
, 1234567890112233_BillingItemDetail_20230404_2.csv
etc.NOTE -
If multiple bills (.csv files) are available on the same day, you can compress them into a single .zip
file and upload the zip file to the S3 bucket for Tanzu CloudHealth to consume.
Create a repository to post the Alibaba cloud bills. This step is required to pass on the necessary credentials to the Tanzu CloudHealth platform.
In the Name and Dataset section, enter a name for your Data Connect and select the dataset you are looking for.
In the Dataset Location section, enter the following details:
Click Submit.
The newly created Data Connect will appear in the Data Connect list.
Note- The bucket name and the report path have a case-sensitive string.
- Any discrepancy in the S3 bucket report path will result in connection failure.
- Once you configure Alibaba cloud Data Connect, you should be able to see the data in FlexReport within 24hrs.
- For security reasons, Assume Role ARN and Assume Role External id fields appear blank while editing data connect config mode.
The FlexReport feature supports the Alibaba Cloud Bill dataset.
To access FlexReports, in the Tanzu CloudHealth platform, navigate to Reports > FlexReports. Click New Report to generate a new FlexReport.
To access the FlexReport Templates, click Reports > FlexReports > View Templates.