ROS billing
Resource Orchestration Service (ROS) is free. You pay only for the Alibaba Cloud resources created in your stacks, based on their respective billing methods.
Billable items and billing methods
Billable item | Description | Billing method |
Resource Orchestration Service | None | None |
Alibaba Cloud resources created in a stack, such as ECS and RDS | Charged based on each resource's own billing method. |
|
Billing example
The following example creates a VPC and a subscription Elastic IP Address (EIP), then demonstrates how to query billing details for the created resources.
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
VPC:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock: 192.168.XX.XX/16
VpcName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
EIP:
Type: ALIYUN::VPC::EIP
Properties:
InstanceChargeType: Prepaid
PricingCycle: Month
Period: 1
DeletionProtection: false
AutoPay: false
InternetChargeType: PayByTraffic
Bandwidth: 5 Query billing details using either method:
Query in the console
Log on to the ROS console.
In the left-side navigation pane, click Stacks.
-
In the top navigation bar, select the region where you want to create the stack, such as China (Hangzhou).
On the Stack List page, click Create Stack and select Use ROS.
On the Select Template page, set Specify Template to Select an Existing Template, set Template Import Method to Enter Template, paste the preceding template into Template Content, and click Next.
On the Configure Parameters page, click Expense Details. The Expense Details page displays the billing details for the stack.
Query by calling an API operation
Log on to Developer Portal or Alibaba Cloud OpenAPI Developer Portal.
Set the cloud product to Resource Orchestration Service.
Click the API Debugging tab and select the GetTemplateEstimateCost API operation.
Set
RegionId,Parameters, andTemplateBody. ForTemplateBody, enter the preceding template.Click Call.
In Call Result, check
TotalCostAmountto view the total cost of resources defined in the template.