Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::EAIS::Instance

Última atualização: Sep 17, 2026

Use o tipo de recurso ALIYUN::EAIS::Instance para crie uma instância do Elastic Accelerated Computing Instances (EAIS).

Sintaxe

{
  "Type": "ALIYUN::EAIS::Instance",
  "Properties": {
    "InstanceName": String,
    "ResourceGroupId": String,
    "SecurityGroupId": String,
    "VSwitchId": String,
    "PaymentType": String,
    "InstanceType": String,
    "EnvironmentVar": List,
    "CreateWithNotebook": Boolean
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Permite atualizações

Descrição

Restrições

InstanceName

String

Não

Não

Nome da instância EAIS.

O nome deve ter de 2 a 128 caracteres e começar com uma letra. Não pode iniciar com http:// ou https://. Pode conter dígitos, dois pontos (:), sublinhados (_), pontos (.) e hifens (-).

ResourceGroupId

String

Não

Sim

ID do grupo de recursos ao qual a instância pertence.

Nenhuma

SecurityGroupId

String

Sim

Não

ID do grupo de segurança ao qual a instância pertence.

Nenhuma

VSwitchId

String

Sim

Não

ID do vSwitch ao qual a instância pertence.

Nota

O número de endereços IP disponíveis no bloco CIDR do vSwitch determina o número máximo de instâncias EAIS que você pode crie nele. Planeje seu bloco CIDR antecipadamente.

PaymentType

String

Não

Não

Método de faturamento.

Valores válidos:

  • PostPay: pagamento conforme o uso.

  • PrePay: assinatura.

InstanceType

String

Sim

Não

Tipo da instância EAIS.

Valores válidos:

  • eais.ei-a6.4xlarge

  • eais.ei-a6.2xlarge

  • eais.ei-a6.xlarge

  • eais.ei-a6.large

EnvironmentVar

List

Não

Não

Variáveis de ambiente a defina na instância durante a inicialização.

Nenhuma

CreateWithNotebook

Boolean

Sim

Não

Especifica se a instância EAIS deve ser criada com um Jupyter Notebook pré-implantado.

Valores válidos:

  • true: um Notebook é implantado na instância Elastic Accelerated Computing Instance.

  • false: nenhum Notebook é implantado na instância Elastic Accelerated Computing Instance.

Sintaxe de EnvironmentVar

"EnvironmentVar": [
  {
    "Value": String,
    "Key": String
  }
]

Propriedades de EnvironmentVar

Propriedade

Tipo

Obrigatório

Atualizável

Descrição

Restrições

Value

String

Não

Não

Valor da variável de ambiente.

Nenhuma

Key

String

Não

Não

Chave da variável de ambiente.

Nenhuma

Valores de retorno

Fn::GetAtt

  • InstanceName: nome da instância EAIS.

  • ClientInstanceType: tipo da instância ECS ou ECI anexada à instância EAIS.

  • ClientInstanceName: nome da instância ECS ou ECI anexada à instância EAIS.

  • ZoneId: ID da zona à qual a instância EAIS pertence.

  • ResourceGroupId: ID do grupo de recursos ao qual a instância pertence.

  • InstanceId: ID da instância EAIS.

  • SecurityGroupId: ID do grupo de segurança ao qual a instância pertence.

  • CreateTime: hora de criação do recurso.

  • VSwitchId: ID do vSwitch ao qual a instância pertence.

  • ClientInstanceId: ID da instância ECS ou ECI anexada à instância EAIS.

  • InstanceType: tipo da instância EAIS.

  • JupyterUrl: endpoint do Jupyter Notebook.

Exemplos

YAML formato

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ZoneId:
    Type: String
    Description: The ID of the zone.
    AssociationProperty: ALIYUN::ECS::Instance:ZoneId
  VpcId:
    Type: String
    Label: VPC ID
    Description: The ID of the VPC. Find the ID, which starts with vpc-, in the Virtual Private Cloud console.
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  VSwitchId:
    Type: String
    Description: The ID of the vSwitch.
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
      ZoneId: ${ZoneId}
  SecurityGroupId:
    Type: String
    Description: The ID of the security group.
    AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
  InstanceName:
    Type: String
    Description: The name of the instance.
    Default: myTest
  InstanceType:
    Type: String
    Description: The instance type of the EAIS instance.
    Default: eais.ei-a6.4xlarge
Resources:
  ExtensionResource:
    Type: ALIYUN::EAIS::Instance
    Properties:
      InstanceName:
        Ref: InstanceName
      SecurityGroupId:
        Ref: SecurityGroupId
      VSwitchId:
        Ref: VSwitchId
      InstanceType:
        Ref: InstanceType
      CreateWithNotebook: false
Outputs:
  InstanceName:
    Description: The name of the instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceName
  ClientInstanceType:
    Description: The instance type of the attached ECS instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ClientInstanceType
  ClientInstanceName:
    Description: The name of the attached ECS instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ClientInstanceName
  ZoneId:
    Description: The ID of the zone to which the EAIS instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ZoneId
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceGroupId
  InstanceId:
    Description: The ID of the EAIS instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceId
  SecurityGroupId:
    Description: The ID of the security group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SecurityGroupId
  CreateTime:
    Description: The time when the resource was created.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  VSwitchId:
    Description: The ID of the vSwitch.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - VSwitchId
  ClientInstanceId:
    Description: The ID of the attached ECS instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ClientInstanceId
  InstanceType:
    Description: The instance type of the EAIS instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceType
  JupyterUrl:
    Description: The endpoint of the Jupyter Notebook.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - JupyterUrl

JSON formato

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ZoneId": {
      "Type": "String",
      "Description": "The ID of the zone.",
      "AssociationProperty": "ALIYUN::ECS::Instance:ZoneId"
    },
    "VpcId": {
      "Type": "String",
      "Label": "VPC ID",
      "Description": "The ID of the VPC. Find the ID, which starts with vpc-, in the Virtual Private Cloud console.",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "The ID of the vSwitch.",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}",
        "ZoneId": "${ZoneId}"
      }
    },
    "SecurityGroupId": {
      "Type": "String",
      "Description": "The ID of the security group.",
      "AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}"
      }
    },
    "InstanceName": {
      "Type": "String",
      "Description": "The name of the instance.",
      "Default": "myTest"
    },
    "InstanceType": {
      "Type": "String",
      "Description": "The instance type of the EAIS instance.",
      "Default": "eais.ei-a6.4xlarge"
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::EAIS::Instance",
      "Properties": {
        "InstanceName": {
          "Ref": "InstanceName"
        },
        "SecurityGroupId": {
          "Ref": "SecurityGroupId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "InstanceType": {
          "Ref": "InstanceType"
        },
        "CreateWithNotebook": false
      }
    }
  },
  "Outputs": {
    "InstanceName": {
      "Description": "The name of the instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceName"
        ]
      }
    },
    "ClientInstanceType": {
      "Description": "The instance type of the attached ECS instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ClientInstanceType"
        ]
      }
    },
    "ClientInstanceName": {
      "Description": "The name of the attached ECS instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ClientInstanceName"
        ]
      }
    },
    "ZoneId": {
      "Description": "The ID of the zone to which the EAIS instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ZoneId"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of the EAIS instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceId"
        ]
      }
    },
    "SecurityGroupId": {
      "Description": "The ID of the security group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SecurityGroupId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the resource was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "VSwitchId": {
      "Description": "The ID of the vSwitch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "VSwitchId"
        ]
      }
    },
    "ClientInstanceId": {
      "Description": "The ID of the attached ECS instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ClientInstanceId"
        ]
      }
    },
    "InstanceType": {
      "Description": "The instance type of the EAIS instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceType"
        ]
      }
    },
    "JupyterUrl": {
      "Description": "The endpoint of the Jupyter Notebook.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "JupyterUrl"
        ]
      }
    }
  }
}