Skip to content

Alibaba Cloud Billing

Configuration

Permissions

We recommend granting the global read-only policy ReadOnlyAccess, or configuring the permissions required by this integration as listed below.

  • bssapi:DescribeInstanceBill: Read instance billing details.

Install Func

It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata)

If deploying Func manually, refer to Self-deploying Func

Activate Script

Tips

  1. Prepare Alibaba Cloud AK in advance and authorize access as described in Permissions.
  2. To ensure accuracy, bill data is always collected for T-1.

Activate Script in Automata

  1. Log in to the TrueWatch console
  2. Click on the 【Integration】 menu and select 【Cloud Account Management】
  3. Click on 【Add Cloud Account】, select 【Alibaba Cloud】, and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step
  4. Click on 【Test】, and if the test is successful, click on 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
  5. In the 【Cloud Account Management】 list, you can see the added cloud account. Click on the corresponding cloud account to enter the details page
  6. Click on the 【Integration】 button on the cloud account details page, find Alibaba Cloud Billing under the Not Installed list, and click on the 【Install】 button. The installation interface will pop up for installation.

Activate Script Manually

  1. Log in to the Func console, click on 【Script Market】, enter the TrueWatch script market, and search for integration_alibabacloud_billing_by_instance

  2. Click on 【Install】, then enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.

  3. Click on 【Deploy Startup Script】, the system will automatically create a Startup script set and configure the corresponding startup script.

  4. After enabling, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click on 【Execute】 to immediately execute once without waiting for the scheduled time. Wait for a moment, and you can view the execution task records and corresponding logs.

Verification

In TrueWatch, check if there is corresponding cloud billing data in the 「Cloud Billing」 menu