Updated on 2024-11-15 GMT+08:00

Preparation

This tutorial demonstrates how to convert the format of DIS data and store the converted data into CloudTable. To achieve this purpose, you need to create a VPC and then create a cluster on the CloudTable console.

Before creating a function, you must create an agency to delegate FunctionGraph to access DIS and CloudTable resources.

Creating a VPC

  1. Log in to the VPC console and click Create VPC.
  2. Set the private cloud information.

    In the Basic Information area, enter a name, for example, vpc-cloudtable. Use the default values for other parameters.

    For Default Subnet, use the default settings.

  3. Confirm the configuration information and click Create Now.

Creating a Cluster

  1. In the left navigation pane of the management console, choose Analytics > CloudTable Service to go to the CloudTable console. On the Cluster Mode page, click Buy Cluster.
  2. Set the cluster information.

    • Region: Use the default region.
    • Name: Enter a name, for example, cloudtable-dis.
    • VPC: Select vpc-cloudtable created in Creating a VPC.
    • Retain the default values for other parameters.
    Figure 1 Buying a cluster

  3. Confirm the configuration information and click Submit.

    Figure 2 Creating a cluster

    Creating a cluster takes a long time. You can check the creation progress according to Figure 2.

Creating an Agency

  1. In the left navigation pane of the management console, choose Management & Governance > Identity and Access Management to go to the IAM console. Then choose Agencies in the navigation pane.
  2. On the Agencies page, click Create Agency.
  3. Set the agency information.

    • For Agency Name: Enter an agency name, for example, DISDemo.
    • For Agency Type, select Cloud service.
    • For Cloud Service, select FunctionGraph.
    • For Validity Period, select Unlimited.

  4. Click Next. On the Select Policy/Role page, select DIS Administrator and Cloudtable Administrator.

    Cloudtable Administrator depends on Tenant Guest and Server Administrator. When you select the former, the latter will also be selected.

  5. Click Next, select an authorization scope that meets your service requirements, and click OK.