ROS Infrastructure Composer is free of charge. You are billed only for the Alibaba Cloud resources that you create through templates. You can view billing details in the console or by calling an API operation.
Billable items and billing methods
|
Billable item |
Description |
Billing method |
|
ROS Infrastructure Composer |
ROS Infrastructure Composer is free of charge. |
Not applicable. |
|
Alibaba Cloud resources created in a stack, such as ECS and ApsaraDB RDS. |
Billed based on the billing method of each resource. |
|
Billing example
The following example creates a Single-zone Network and a pay-as-you-go elastic IP address (EIP), and then shows how to query billing details for these resources.
Create the architecture diagram:
-
Log in to the ROS Infrastructure Composer console.
-
In the navigation pane on the left, choose Infrastructure Templates, click Create Infrastructure Template, select ROS or Terraform from the dialog box, and click OK.
-
From the navigation pane on the left, drag Single-zone Network onto the canvas.
-
From the navigation pane on the left, drag EIP into the region on the canvas.
-
On the canvas, click EIP. In the form on the right, configure the resource properties. For example:
-
Set InstanceChargeType to pay-as-you-go.
-
Set InternetChargeType to pay-by-bandwidth.
Set Bandwidth to 5 and Availability Zone to Availability Zone F.
-
You can query billing details by using the following methods:
-
Query billing details in the console
-
In the upper-right corner, click Deploy to go to the one-stop deployment page.
-
On the deployment configuration page, click Next.
-
On the Price Preview page, view the estimated total cost. You can click Cost Details to view a detailed list of billable items.
The Price Preview table lists details for each resource, including type, specifications, region, quantity, billing method, and estimated cost. In this example, the EIP is in the China (Beijing) region, the quantity is 1, and the billing method is pay-as-you-go. A message at the top of the page indicates that the estimate is for reference only and the final charge is based on actual usage. The bottom of the page displays your account balance and available credit.
-
-
Query billing details using an API
-
In the upper-right corner, click Template to open the template page.
-
Copy the template content from the JSON or YAML tab.
-
Log in to the Developer Portal or Alibaba Cloud OpenAPI Developer Portal, and go to GetTemplateEstimateCost.
-
Configure the
RegionIdandTemplateBodyparameters. Paste the copied template content into theTemplateBodyparameter. -
Click Initiate Call.
In the response, check the
TotalCostAmountparameter to view the billing information for the resources defined in the template.
-