All Products
Search
Document Center

ENS:Create an ENS instance with ROS

Last Updated:Jun 22, 2026

You can write a Resource Orchestration Service template to automatically create ENS instances.

Supported resources

Permissions

To create an ENS instance in this example, Resource Orchestration Service uses the credentials of the current console user. The user must have the following permission:

  • AliyunENSFullAccess: The permission to manage ENS resources.

Operating with an Alibaba Cloud account poses a high security risk. We recommend that you use a RAM user with only the minimum required permissions for API calls and routine operations. To learn how to grant a RAM user permissions to manage ENS resources, see System policies for ENS.

Procedure

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

  2. On the Stacks page, click Create Stack. In the Specify Template section, click Select an Existing Template.

    Note
    • If you select Create Template or ROS Infrastructure Composer, you are redirected to the corresponding page.

  3. For Template Import Method, select Enter Template Content. For Template Content, select ROS and enter the code.

    For more information about the syntax and parameters for creating an ENS instance, see ALIYUN::ENS::Instance. This example creates two instances.

    YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      ENSInstance:
        Type: ALIYUN::ENS::Instance
        Properties:
          EnsRegionId: cn-chengdu-telecom-3
          ImageId: centos_6_08_64_20G_alibase_20171208
          InstanceType: ens.sn1.stiny
          InternetChargeType: 95BandwidthByMonth
          Password: Enstest1xx
          Period: 1
          Quantity: 2
          SystemDiskSize: 20
          DataDiskSize: 20
          PaymentType: Subscription
    Outputs: {}

    JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "ENSInstance": {
          "Type": "ALIYUN::ENS::Instance",
          "Properties": {
            "EnsRegionId": "cn-chengdu-telecom-3",
            "ImageId": "centos_6_08_64_20G_alibase_20171208",
            "InstanceType": "ens.sn1.stiny",
            "InternetChargeType": "95BandwidthByMonth",
            "Password": "Enstest1xx",
            "Period": 1,
            "Quantity": 2,
            "SystemDiskSize": 20,
            "DataDiskSize": 20,
            "PaymentType": "Subscription"
          }
        }
      },
      "Outputs": {
      }
    }
  4. Click Create to launch the stack.

  5. After the stack is created, you can view the new instances by using OpenAPI, SDKs, or the ENS console.

    In the navigation pane on the left of the ENS console, choose Compute & Image > Instances. On the Instances page, you can view the newly created instances. In the Status column, the instance status is Running.