All Products
Search
Document Center

ApsaraDB for MongoDB:Integrate ApsaraDB for MongoDB by using ROS

Last Updated:Aug 30, 2024

This topic describes how to create a Resource Orchestration Service (ROS) template to automatically create an ApsaraDB for MongoDB instance.

Resource architecture

image.png

You can create a virtual private cloud (VPC), a vSwitch, and a replica set instance in a specific region.

Required permissions

In this example, you must create a VPC, a vSwitch, and an instance. By default, Resource Orchestration Service uses the credentials of the current user who logs on to the ROS console. The current user must be granted the following permissions:

  • AliyunROSFullAccess: provides full access to Resource Orchestration Service.

  • AliyunVPCFullAccess: provides full access to Virtual Private Cloud.

  • AliyunMongoDBFullAccess: provides full access to ApsaraDB for MongoDB.

Procedure

  1. Log on to the ROS console. In the top navigation bar, select a region from the Region drop-down list.

  2. In the left-side navigation pane, click Stacks. On the Stacks page, choose Create Stack > Use ROS.

    • Specify Template: Select Select an Existing Template.

    • Template Import Method: Select Enter Template Content.

  3. Template Content: Select ROS and then enter code.

    The code used to create an instance varies with the instance architecture.

  4. Click Next to go to the Configure Template Parameters step.

  5. Click Create and execute the created stack.

  6. View the result.

    image.png