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
andAliyunROSFullAccess
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.NoteIn 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.TablestoreAn AccessKey pair is created for the RAM user. For more information, see Create an AccessKey pair.
WarningIf 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
Log on to the ROS console.
In the top navigation bar, select a region.
Create a stack.
On the Stacks page, click Create Stack and select Use ROS from the drop-down list.
Select a template and click Next.
In the Specify Template section, click Select an Existing Template.
Set Template Import Method to Enter Template Content.
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.
Configure the parameters.
Enter a name in the Stack Name field.
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.
Click Create to create the stack.
After the stack is created, the following result is returned.
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.