资源编排服务 RFS-ECS.ServerGroup:blueprint样例

时间:2023-11-01 16:19:21

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0node_templates:  ecscs513:    type: HuaweiCloud.ECS.CloudServer    properties:      name:        get_input: ecscs513_name      imageId:        get_input: ecscs513_imageId      instances: 2      availabilityZone:        get_input: ecscs513_availabilityZone      nics:        - subnetId:            get_input: ecscs513_nics_0_subnetId      rootVolume:        volumeType: SATA        size: 40      flavor:        get_input: ecscs513_flavor      serverGroupId:        get_reference: ecssg4rg      vpcId:        get_input: ecscs513_vpcId    requirements:      - serverGroupId:          node: ecssg4rg  ecssg4rg:    type: HuaweiCloud.ECS.ServerGroup    properties:      policies: anti-affinityinputs:  ecscs513_name:    description: 云服务器名称    label: ''  ecscs513_imageId:    description: 云服务器使用的镜像ID    default: 327946b5-e954-42c3-949a-3312688c9269    label: ''  ecscs513_availabilityZone:    description: 云服务器对应可用区信息    label: ''  ecscs513_nics_0_subnetId:    description: 待创建云服务器的网卡信息。    label: ''  ecscs513_flavor:    description: 云服务器的规格    label: ''  ecscs513_vpcId:    description: 云服务器所属VPC的ID    label: ''
support.huaweicloud.com/tr-aos/ecs-servergroup.html