All Products
Document Center

Function Compute:Split bills

Last Updated:Nov 24, 2023

Function Compute provides the tagging feature for resource units to facilitate resource searching and aggregation. You can create tags for services and use the tags to split bills. This topic describes the scenarios and process of bill splitting and how to use tags to split bills and view the split bills.


Bill splitting applies to the following scenarios:

  • Environment isolation

    You can bind different tags to different environments such as production and test environments, runtimes such as Java, Python, and Node.js runtimes, or client platforms such as iOS and Android to isolate operating environments of developers.

  • Project management

    You can bind tags to groups, projects, and departments to split the bills of projects and teams. For example, you can use the team:ops tag.

The following figure shows how bill splitting works.


Bill splitting process



A service is created, and tags are created for the service. For more information, see Create a service and Create a tag.


  1. Log on to the User Center.
  2. In the left-side navigation pane, choose Manage Split > Cost allocation tags.

    • If the tagging feature is not enabled:

      1. On the Cost allocation tags page, click Next.

      2. In the Select tags that you want to enable section, search for tags and add the tags as prompted, and then click Next.

      3. Click Enable. In the message that appears, click OK.

    • If the tagging feature is enabled:

      1. On the Cost allocation tags page, enter a tag in the Tag Key field and click Search.

      2. In the search results, find the tag that you want to enable and click Enable in the Operations column.

        You can also select multiple tags and click Batch Enable to enable multiple tags at a time.

    • After you create a tag for a service, the tag is synchronized to the tag list after one day. When the tag is displayed in the tag list, you can enable the tag.

    • Only enabled tags can be allocated to a cost center.

  3. Allocate the tags to cost centers.

    1. In the left-side navigation pane, choose Corporate Finance > Cost Center.

    2. In the left-side navigation pane of the Cost Centers page, click the plus icon next to Cost Center. In the Add Cost Center dialog box, enter a name and click OK.

    3. In the left-side navigation pane of the Cost Centers page, click All Resources.

    4. Click the filter icon in the Tag column of the tag list. In the search box that appears, select the enabled tags and click OK.

    5. In the Operations column of the tag list, click Allocate. In the Allocate dialog box, select a cost center from the Please Select drop-down list and click OK.

    After you allocate a tag to a cost center, you can remove or transfer the tag based on your business requirements.

  4. View split bills.