日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ACS-ECS-CloneInstancesAcrossAZ

模板名稱

ACS-ECS-CloneInstancesAcrossAZ 跨可用區(qū)批量克隆ECS實(shí)例

立即執(zhí)行

模板描述

跨可用區(qū)批量克隆ECS實(shí)例

模板類型

自動(dòng)化

所有者

Alibaba Cloud

輸入?yún)?shù)

參數(shù)名稱

描述

類型

是否必填

默認(rèn)值

約束

targets

目標(biāo)實(shí)例

Json

targetSecurityGroupId

新實(shí)例的安全組ID

String

targetVSwitchId

新實(shí)例的交換機(jī)ID,填寫本參數(shù)時(shí)將會(huì)決定目的可用區(qū)

String

targetTags

新實(shí)例的標(biāo)簽

Json

regionId

地域ID

String

{{ ACS::RegionId }}

targetResourceGroupId

新實(shí)例將加入的目的資源組ID

String

targetInstanceType

新實(shí)例的規(guī)格

String

targetInstanceChargeType

新實(shí)例的付費(fèi)模式,默認(rèn)按量付費(fèi)

String

PostPaid

targetPeriodUnit

當(dāng)新實(shí)例的付費(fèi)方式選擇包年包月時(shí),請(qǐng)?jiān)诖颂庍x擇時(shí)長單位,默認(rèn)單位是月

String

targetPeriod

當(dāng)新實(shí)例的付費(fèi)方式選擇包年包月時(shí),請(qǐng)?jiān)诖颂幪顚憰r(shí)長數(shù),默認(rèn)值為1

Number

1

targetDeploymentSetId

新實(shí)例的部署集ID

String

targetInstanceName

新實(shí)例的名稱

String

targetHostName

新實(shí)例的主機(jī)名稱

String

rateControl

循環(huán)任務(wù)執(zhí)行的并發(fā)率及容錯(cuò)數(shù)

Json

{‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 10}

OOSAssumeRole

OOS扮演的RAM角色

String

“”

輸出參數(shù)

參數(shù)名稱

描述

類型

instanceIds

List

執(zhí)行此模板需要的權(quán)限策略

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ecs:CreateImage",
                "ecs:DeleteImage",
                "ecs:DescribeAvailableResource",
                "ecs:DescribeDisks",
                "ecs:DescribeImages",
                "ecs:DescribeInstances",
                "ecs:DescribeVSwitches",
                "ecs:RunInstances"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

詳情

ACS-ECS-CloneInstancesAcrossAZ詳情

模板內(nèi)容

FormatVersion: OOS-2019-06-01
Description:
  en: Cross available zone clone and bulky run ECS instance
  zh-cn: 跨可用區(qū)批量克隆ECS實(shí)例
  name-en: ACS-ECS-CloneInstancesAcrossAZ
  name-zh-cn: 跨可用區(qū)批量克隆ECS實(shí)例
  categories:
    - cross_region
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: 地域ID
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  targets:
    Label:
      en: TargetInstance
      zh-cn: 目標(biāo)實(shí)例
    Type: Json
    AssociationProperty: Targets
    AssociationPropertyMetadata:
      ResourceType: 'ALIYUN::ECS::Instance'
      RegionId: regionId
  targetSecurityGroupId:
    Label:
      en: TargetSecurityGroupId
      zh-cn: 新實(shí)例的安全組ID
    Type: String
    AssociationProperty: 'ALIYUN::ECS::SecurityGroup::SecurityGroupId'
    AssociationPropertyMetadata:
      RegionId: regionId
  targetVSwitchId:
    Label:
      en: TargetVSwitchId
      zh-cn: 新實(shí)例的交換機(jī)ID,填寫本參數(shù)時(shí)將會(huì)決定目的可用區(qū)
    Type: String
    AssociationProperty: 'ALIYUN::VPC::VSwitch::VSwitchId'
    AssociationPropertyMetadata:
      RegionId: regionId
      Filters:
        - SecurityGroupId: targetSecurityGroupId
  targetResourceGroupId:
    Label:
      en: TargetResourceGroupId
      zh-cn: 新實(shí)例將加入的目的資源組ID
    Type: String
    Default: ' '
  targetInstanceType:
    Label:
      en: TargetInstanceType
      zh-cn: 新實(shí)例的規(guī)格
    Type: String
    AssociationProperty: 'ALIYUN::ECS::Instance::InstanceType'
    AssociationPropertyMetadata:
      RegionId: regionId
    Default: ' '
  targetTags:
    Label:
      en: TargetTags
      zh-cn: 新實(shí)例的標(biāo)簽
    Type: Json
    AssociationProperty: Tags
    AssociationPropertyMetadata:
      ShowSystem: false
  targetInstanceChargeType:
    Label:
      en: TargetInstanceChargeType
      zh-cn: 新實(shí)例的付費(fèi)模式,默認(rèn)按量付費(fèi)
    Type: String
    AllowedValues:
      - PrePaid
      - PostPaid
    Default: PostPaid
  targetPeriodUnit:
    Label:
      en: TargetPeriodUnit
      zh-cn: 當(dāng)新實(shí)例的付費(fèi)方式選擇包年包月時(shí),請(qǐng)?jiān)诖颂庍x擇時(shí)長單位,默認(rèn)單位是月
    Type: String
    AllowedValues:
      - Week
      - Month
      - ' '
    Default: ' '
  targetPeriod:
    Label:
      en: TargetPeriod
      zh-cn: 當(dāng)新實(shí)例的付費(fèi)方式選擇包年包月時(shí),請(qǐng)?jiān)诖颂幪顚憰r(shí)長數(shù),默認(rèn)值為1
    Type: Number
    Default: 1
  targetDeploymentSetId:
    Label:
      en: TargetDeploymentSetId
      zh-cn: 新實(shí)例的部署集ID
    Type: String
    Default: ' '
  targetInstanceName:
    Label:
      en: TargetInstanceName
      zh-cn: 新實(shí)例的名稱
    Type: String
    Default: ' '
  targetHostName:
    Label:
      en: TargetHostName
      zh-cn: 新實(shí)例的主機(jī)名稱
    Type: String
    Default: ' '
  rateControl:
    Label:
      en: RateControl
      zh-cn: 循環(huán)任務(wù)執(zhí)行的并發(fā)率及容錯(cuò)數(shù)
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: OOS扮演的RAM角色
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: getInstance
    Description:
      en: Views the ECS instances
      zh-cn: 獲取ECS實(shí)例
    Action: 'ACS::SelectTargets'
    Properties:
      RegionId: '{{regionId}}'
      ResourceType: 'ALIYUN::ECS::Instance'
      Filters:
        - '{{ targets }}'
    Outputs:
      instanceIds:
        Type: List
        ValueSelector: 'Instances.Instance[].InstanceId'

  - Name: cloneInstancesAcrossAZ
    Action: 'ACS::Template'
    Description:
      en: Clone instances
      zh-cn: 克隆實(shí)例
    Properties:
      TemplateName: 'ACS::ECS::CloneInstanceAcrossAZ'
      Parameters:
        imageName: 'img-{{ ACS::TaskLoopItem }}-{{ACS::ExecutionId}}'
        instanceId: '{{ ACS::TaskLoopItem }}'
        targetSecurityGroupId: '{{ targetSecurityGroupId }}'
        targetResourceGroupId: '{{ targetResourceGroupId }}'
        targetVSwitchId: '{{ targetVSwitchId }}'
        regionId: '{{ regionId }}'
        targetInstanceName: '{{ targetInstanceName }}'
        targetInstanceChargeType: '{{ targetInstanceChargeType }}'
        targetPeriodUnit: '{{ targetPeriodUnit }}'
        targetPeriod: '{{ targetPeriod }}'
        targetInstanceType: '{{ targetInstanceType }}'
        targetHostName: '{{ targetHostName }}'
        targetDeploymentSetId: '{{ targetDeploymentSetId }}'
        tags: '{{ targetTags }}'
        OOSAssumeRole: '{{OOSAssumeRole}}'
    Loop:
      Items: '{{ getInstance.instanceIds }}'
      RateControl: '{{ rateControl }}'
      Outputs:
        instanceIds:
          AggregateType: 'Fn::ListJoin'
          AggregateField: instanceId
    Outputs:
      instanceId:
        ValueSelector: instanceId
        Type: String
Outputs:
  instanceIds:
    Value: '{{ cloneInstancesAcrossAZ.instanceIds }}'
    Type: List
Metadata:
  ALIYUN::OOS::Interface:
    ParameterGroups:
      - Parameters:
          - targetSecurityGroupId
          - targetVSwitchId
          - targetInstanceType
          - targetTags
          - targetInstanceChargeType
          - targetPeriodUnit
          - targetPeriod
          - targetResourceGroupId
          - targetDeploymentSetId
          - targetInstanceName
          - targetHostName
        Label:
          default:
            zh-cn: 設(shè)置參數(shù)
            en: Configure Parameters
      - Parameters:
          - regionId
          - targets
        Label:
          default:
            zh-cn: 選擇實(shí)例
            en: Select Ecs Instances
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: 高級(jí)選項(xiàng)
            en: Control Options