Split billing
Serverless App Engine (SAE) provides a tag feature for applications. You can create and bind tags to applications that are hosted on SAE and use the tags for split billing management. This topic describes how to set tags for applications and use the tags to view split billing information on demand.
Prerequisites
-
You have enabled split billing.
-
You have completed the preparations.
The preparations include activating SAE and granting the required permissions, granting permissions to a RAM user (optional), creating a namespace, and creating a VPC. To allow a RAM user to view split bills, use your Alibaba Cloud account to grant the
AliyunBBSReadOnlyAccesspermission to the RAM user. The RAM user can then view bills in the Expenses and Costs console and view information such as resource package usage on the Overview page of the SAE console.If the RAM user needs to view more granular billing details, the Alibaba Cloud account can grant the RAM user a permission policy for Expenses and Costs. For more information, see Overall access policies for Expenses and Costs.
-
You have deployed an application to SAE.
Background
As you create more applications, tags can help you group and categorize resources for easier searching and aggregation. You can set different tags for different environments or projects. Examples:
-
Environment isolation: Bind different tags to different environments (such as production and testing), operating systems (such as Windows Server and Linux), or client platforms (such as iOS and Android).
-
Project management: Add tags by group, project, or department (for example,
CostCenter:aliyun) for group-based management and split billing.

The procedure for implementing split billing in SAE is as follows.
-
Plan tags for resources (applications) based on organizational or business dimensions.
-
Log on to the SAE console to apply tags to your applications.
-
Log on to the Expenses and Costs console to view your bills.
Usage
-
Each tag consists of a key-value pair (Key:Value).
-
The tag key must be unique for a resource.
-
Tag information is not shared across regions.
-
Unbinding a tag from its last resource automatically deletes the tag.
Step 1: Configure application tags
-
Log on to the SAE console. In the left-side navigation pane, choose Application Management > Application List. Then, select the target region and namespace, and click Create Application.
-
On the Basic Information page, on the Application Information tab, in the Application Tag section, click the
icon to open the Configure Tags dialog box.Alternatively, on the Application List page, hover over the
icon in the Tag column for the target application, and then click Edit in the tag bubble.When you have many applications, you can select Application Name, Application ID, SLB IP, or instance IP address in the search bar on the Application List page, enter the corresponding value, and click the
icon to search for the target application. -
In the Configure Tags dialog box, manage tags as needed.
-
Add a tag: Enter values in the Tag Key and Tag Value fields, and click OK.
Note-
You can bind a maximum of 20 tags to each application.
-
You can bind or unbind a maximum of 20 tags at a time.
-
-
Delete a tag: Select the key-value pair that you want to delete, click the
icon to its right, and then click OK.NoteDeleting a tag from an application also deletes the tag from the system if it is no longer bound to any other resource.
-
Edit: Select the key-value pair that you want to edit, update the Tag Key and Tag Value, and click OK.
-
-
Verify the result.
-
Verify on the Application List page.
-
On the Application List page, hover over the
icon in the Tag column for the target application to view the tags in the tag bubble. -
Optional: Click Edit in the tag bubble to view tag details in the Configure Tags dialog box.
-
-
Verify on the Basic Information page.
-
On the Application List page, click the target application to go to the Basic Information page.
-
On the Application Information tab, in the Application Tag section, click the
icon to view tag details in the Configure Tags dialog box.
-
-
Step 2: View costs in Cost Management
-
Log on to the Expenses and Costs console.
-
In the left-side navigation pane, choose .
-
If you have never enabled cost allocation tags: After a cost allocation tag is enabled, it can be used as a filter in Billing Details, Split Bill, Cost Analysis, and Cost Centers. You can enable a maximum of 100 tag keys.
-
On the Cost allocation tags page, click Next.
-
In the Select tags that you want to enable section, search for and add the desired Tag Key, then click Next.
-
Click Enable. In the dialog box that appears, click OK.
-
-
If you have previously enabled cost allocation tags, follow these steps to enable a new one, such as the
acs:sae:namespacetag:-
On the Cost allocation tags page, enter the tag in the Tag Key text box and click Search.
-
In the search results, find the target tag and click Enable in the Operations column.
To enable multiple tags, select them and click Batch Enable.
-
Important-
Tags are case-sensitive.
-
Starting from March 13, 2023, SAE automatically binds the system tag acs:sae:namespace (not visible in the console) to new applications and to existing applications upon redeployment. You must also enable this tag in Expenses and Costs.
-
-
Allocate costs to cost centers by tag.
-
In the left-side navigation pane, choose .
-
In the left-side navigation pane of the Cost Center page, click the plus icon (+) next to Cost Center. In the Add Cost Center dialog box that appears, enter a name and click OK.
-
In the left-side navigation pane of the Cost Center page, select All Resources. In the resource list on the right, click the filter icon in the Tag column, select the enabled tags in the search box that appears, and click OK.
-
In the Operations column of the filtered results, click Allocate. In the Allocate dialog box, select a cost center from the Please Select drop-down list, and click OK.
-
-
View cost information.
-
In the left-side navigation pane, choose .
-
On the Split Bill page, use the filters in the title bar to organize the report by dimension, such as a configured Cost Center.
On the Split Bill page, you can view the filtered cost results. To download a detailed report, click Export Billing Overview (CSV) in the upper-right corner.
-
Split billing rules after SAE is merged with Function Compute
After Serverless App Engine (SAE) is merged with Function Compute, how your SAE bills are displayed changes as follows:
-
Product Detail (the specific commodity name): SAE resources are still displayed as Serverless App Engine.
-
Product Name (the product category): SAE resources are now displayed as Function Compute.
This change affects only how the product is labeled on your bill. It does not affect how you allocate costs.
You can continue to allocate the costs of your SAE resources by using either of the following methods:
-
Allocate by instance ID: In the Cost Center rules, you can allocate SAE resources to a financial cost center based on the instance ID of the resource.
More information
For more information about split billing, see the following topics: