All Products
Search
Document Center

Tablestore:Integrate Tablestore by using ROS

Last Updated:Nov 05, 2024

This topic describes how to use Resource Orchestration Service (ROS) as a RAM user to create a Tablestore instance.

Prerequisites

The following operations are performed in the Resource Access Management (RAM) console:

  • A RAM user is created and the AliyunOTSFullAccess and AliyunROSFullAccess policies are attached to the RAM user. The AliyunOTSFullAccess policy grants the RAM user the permissions to manage Tablestore and the AliyunROSFullAccess policy grants the RAM user the permissions to manage ROS. For more information, see Create a RAM user and Grant permissions to a RAM user.

    Note

    In this example, the AliyunOTSFullAccess policy is used for demonstration purposes. Grant the required permissions to the RAM user in a fine-grained manner based on your business requirements. For more information, see Create a custom policy.Tablestore

  • An AccessKey pair is created for the RAM user. For more information, see Create an AccessKey pair.

    Warning

    If the AccessKey pair of your Alibaba Cloud account is leaked, your resources are exposed to potential risks. We recommend that you use the AccessKey pair of a RAM user to perform operations. This prevents leakage of the AccessKey pair of your Alibaba Cloud account.

Procedure

  1. Log on to the ROS console.

  2. In the top navigation bar, select a region.

  3. Create a stack.

    1. On the Stacks page, click Create Stack and select Use ROS from the drop-down list.

    2. Select a template and click Next.

      1. In the Specify Template section, click Select an Existing Template.

      2. Set Template Import Method to Enter Template Content.

      3. On the ROS tab in the Template Content section, enter the following code and click Next.

        For more information about the syntax, description, and examples of how to create a Tablestore instance, see ALIYUN::OTS::Instance.

        • YAML format

          ROSTemplateFormatVersion: '2015-09-01'
          Parameters: {}
          Resources:
            Instance:
              Type: ALIYUN::OTS::Instance
              Properties:
                Network: NORMAL
                ClusterType: SSD
                InstanceName: TestOTS
                Description: Test Ots Instance
          Outputs:
            InstanceName:
              Description: Instance name
              Value:
                Fn::GetAtt:
                  - Instance
                  - InstanceName
            VpcEndpoint:
              Description: Vpc endpoint
              Value:
                Fn::GetAtt:
                  - Instance
                  - VpcEndpoint
            PublicEndpoint:
              Description: Public endpoint
              Value:
                Fn::GetAtt:
                  - Instance
                  - PublicEndpoint
            PrivateEndpoint:
              Description: Private endpoint
              Value:
                Fn::GetAtt:
                  - Instance
                  - PrivateEndpoint
        • JSON format

          {
            "ROSTemplateFormatVersion": "2015-09-01",
            "Parameters": {
            },
            "Resources": {
              "Instance": {
                "Type": "ALIYUN::OTS::Instance",
                "Properties": {
                  "Network": "NORMAL",
                  "ClusterType": "SSD",
                  "InstanceName": "TestOTS",
                  "Description": "Test Ots Instance"
                }
              }
            },
            "Outputs": {
              "InstanceName": {
                "Description": "Instance name",
                "Value": {
                  "Fn::GetAtt": [
                    "Instance",
                    "InstanceName"
                  ]
                }
              },
              "VpcEndpoint": {
                "Description": "Vpc endpoint",
                "Value": {
                  "Fn::GetAtt": [
                    "Instance",
                    "VpcEndpoint"
                  ]
                }
              },
              "PublicEndpoint": {
                "Description": "Public endpoint",
                "Value": {
                  "Fn::GetAtt": [
                    "Instance",
                    "PublicEndpoint"
                  ]
                }
              },
              "PrivateEndpoint": {
                "Description": "Private endpoint",
                "Value": {
                  "Fn::GetAtt": [
                    "Instance",
                    "PrivateEndpoint"
                  ]
                }
              }
            }
          }
    3. Configure the parameters.

      1. Enter a name in the Stack Name field.

      2. In the Configure Stack Settings section, configure the Rollback on Failure, Timeout Period, Tags, Resource Group, Stack Policy, Maximum Concurrent Resources, Deletion Protection, RAM Role, Stack Event Callback URLs, and Manual Payment parameters.

    4. Click Create to create the stack.

      After the stack is created, the following result is returned.

      image

  4. View the stack.

    After you create the stack, click the Resources tab of the stack to view the name of the instance that you create in the Resource ID column.

    You can click the resource ID to go to the Overview page of Tablestore.

    image