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

創(chuàng)建兩個ECS和SLB并將ECS添加到SLB后端服務(wù)器并創(chuàng)建一臺RDS服務(wù)器場景下快速創(chuàng)建計算巢服務(wù)

您可以通過選擇場景模板的方式自動錄入模板內(nèi)容,完成服務(wù)的快速創(chuàng)建。本文介紹了創(chuàng)建兩個ECS和SLB并將ECS添加到SLB后端服務(wù)器,并創(chuàng)建一臺RDS服務(wù)器的場景下,通過選擇場景模板的方式,快速部署計算巢服務(wù)。

前提條件

當(dāng)您滿足以下任一條件時,可通過本文操作快速部署服務(wù)。

  • 您的軟件是通過自定義鏡像創(chuàng)建ECS實例來部署的。

  • 您已經(jīng)在云市場以鏡像的形式發(fā)布過商品。

操作步驟

創(chuàng)建服務(wù)

  1. 登錄計算巢控制臺

  2. 在左側(cè)導(dǎo)航欄中,單擊我的服務(wù),在我創(chuàng)建的服務(wù)頁簽中,單擊創(chuàng)建新服務(wù)

  3. 選擇自定義創(chuàng)建服務(wù),并在服務(wù)類型處選擇私有部署服務(wù),然后單擊下一步:配置服務(wù)

  4. 在配置服務(wù)界面,完成如下信息配置。

    1. 基本信息區(qū)域,上傳服務(wù)圖標(biāo),填寫服務(wù)名稱服務(wù)簡介版本描述

    2. 服務(wù)部署區(qū)域,配置服務(wù)所需要的資源。

      1. 部署設(shè)置處,選擇全部地域

      2. 模板錄入處,選擇選擇經(jīng)典場景并在選擇場景中選擇創(chuàng)建兩個ECS和SLB并將ECS添加到SLB后端服務(wù)器,并創(chuàng)建一臺RDS-已有專有網(wǎng)絡(luò)VPC場景。完成選擇場景后,模板內(nèi)容框中會自動填充內(nèi)容,您無需修改。界面配置如下圖所示。2024-01-31_10-59-14.png

        模板內(nèi)容的詳細說明,請參見ROS控制臺,模板架構(gòu)如下:2

      3. 單擊添加套餐,設(shè)置兩個套餐且不支持自定義套餐。2024-01-31_11-12-49.png

      4. 部署物關(guān)聯(lián)處,選擇部署物中已分發(fā)的鏡像替換模板中的鏡像。2024-01-31_11-17-03.png

      5. 不設(shè)置應(yīng)用分組。

        若您需要將模板中的資源進行分組,可單擊創(chuàng)建應(yīng)用分組,對資源分組。

    3. 服務(wù)運維(選填)區(qū)域,設(shè)置服務(wù)運維功能。

      1. 運維處,設(shè)置運維通知信息。2024-01-30_17-44-45.png

      2. 監(jiān)控處,設(shè)置資源監(jiān)控信息。2024-01-30_17-46-47.png

      3. 日志升級變配處,保持默認配置。

    4. 高級配置(選填)區(qū)域,不做更多高級配置。

  5. 單擊創(chuàng)建服務(wù)

    在彈窗中,選中服務(wù)協(xié)議和審核標(biāo)準(zhǔn),然后單擊確定

  6. 測試服務(wù)。

    服務(wù)保存后,您需要對創(chuàng)建的服務(wù)進行測試,以確保其正常可用。更多信息,請參見測試服務(wù)

  7. 發(fā)布服務(wù)。

    服務(wù)測試通過后,再提交審核,審核通過后即可發(fā)布上線。更多信息,請參見上線服務(wù)

部署服務(wù)實例

  1. 服務(wù)上線后用戶通過部署鏈接創(chuàng)建服務(wù)實例,按提示輸入對應(yīng)參數(shù),然后點擊下一步:確認訂單2024-04-26_16-47-27.png

  2. 在確認訂單頁,完成參數(shù)信息的確認并授權(quán)服務(wù)商權(quán)限,然后單擊立即創(chuàng)建2024-04-26_16-49-10.png

  3. 服務(wù)實例部署完成后在資源頁查看服務(wù)實例生成的資源。2024-03-20_18-13-21.png

進階操作

將生成的ECS自動加入RDS白名單

  1. 在創(chuàng)建服務(wù)時選擇并修改本文場景模板,重新定義SecurityIPList部分(模板參考附件),修改完成后按上文的操作步驟配置服務(wù)。6

附件

ROSTemplateFormatVersion: '2015-09-01'
Description:
  en: >-
    Use the existing VPC、VSWitch、 SecurityGroup, create 1 RDS, 1 SLB, and 2 ECS
    instances, and bind all ECS instances to the SLB.
  zh-cn: 使用已有VPC、VSWitch、SecurityGroup,創(chuàng)建1個RDS、1個SLB、2個ECS實例,并將所有ECS實例綁定到SLB上。
Parameters:
  ZoneId:
    Type: String
    AssociationProperty: 'ALIYUN::ECS::Instance:ZoneId'
    Description:
      zh-cn: 可用區(qū)ID。
      en: Availability Zone ID.
    Label:
      zh-cn: 交換機可用區(qū)
      en: VSwitch Availability Zone
  VpcId:
    AssociationProperty: 'ALIYUN::ECS::VPC::VPCId'
    Type: String
    Description:
      en: >-
        Please search the ID starting with (vpc-xxx)from console-Virtual Private
        Cloud
      zh-cn: 現(xiàn)有虛擬專有網(wǎng)絡(luò)的實例ID
    Label:
      en: VPC ID
      zh-cn: 專有網(wǎng)絡(luò)VPC實例ID
  VSwitch:
    AssociationProperty: 'ALIYUN::ECS::VSwitch::VSwitchId'
    AssociationPropertyMetadata:
      VpcId: '${VpcId}'
      ZoneId: '${ZoneId}'
    Type: String
    Description:
      en: >-
        Instance ID of existing business network switches, console-Virtual
        Private Cloud-VSwitches under query
      zh-cn: 現(xiàn)有業(yè)務(wù)網(wǎng)絡(luò)交換機的實例ID
    Label:
      en: VSwitch ID
      zh-cn: 交換機實例ID
  SecurityGroup:
    Type: String
    AssociationProperty: 'ALIYUN::ECS::SecurityGroup::SecurityGroupId'
    AssociationPropertyMetadata:
      VpcId: '${VpcId}'
    Description:
      en: >-
        Please search the business security group ID starting with(sg-xxx)from
        console-ECS-Network & Security
      zh-cn: 現(xiàn)有業(yè)務(wù)安全組的實例ID
    Label:
      en: Business Security Group ID
      zh-cn: 業(yè)務(wù)安全組ID
  InstancePassword:
    NoEcho: true
    Type: String
    Description:
      en: >-
        Server login password, Length 8-30, must contain three(Capital letters,
        lowercase letters, numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special
        symbol in).
      zh-cn: >-
        服務(wù)器登錄密碼,長度8-30,必須包含三項(大寫字母、小寫字母、數(shù)字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/
        中的特殊符號)。
    AllowedPattern: '[0-9A-Za-z\_\-\&:;''<>,=%`~!@#\(\)\$\^\*\+\|\{\}\[\]\.\?\/]+$'
    Label:
      en: Instance Password
      zh-cn: 實例密碼
    ConstraintDescription:
      en: >-
        Length 8-30, must contain three(Capital letters, lowercase letters,
        numbers, ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ Special symbol in).
      zh-cn: '長度8-30,必須包含三項(大寫字母、小寫字母、數(shù)字、 ()`~!@#$%^&*_-+=|{}[]:;''<>,.?/ 中的特殊符號)。'
    MinLength: 8
    MaxLength: 30
  DataDiskCategory:
    AssociationProperty: 'ALIYUN::ECS::Disk::DataDiskCategory'
    AssociationPropertyMetadata:
      InstanceType: '${EcsInstanceType}'
      ZoneId: '${ZoneId}'
    Type: String
    Description:
      en: >-
        <font color='blue'><b>Optional values:</b></font><br>[cloud_efficiency:
        <font color='green'>Efficient Cloud Disk</font>]<br>[cloud_ssd: <font
        color='green'>SSD Cloud Disk</font>]<br>[cloud_essd: <font
        color='green'>ESSD Cloud Disk</font>]<br>[cloud: <font
        color='green'>Cloud Disk</font>]<br>[ephemeral_ssd: <font
        color='green'>Local SSD Cloud Disk</font>]
      zh-cn: >-
        <font color='blue'><b>可選值:</b></font><br>[cloud_efficiency: <font
        color='green'>高效云盤</font>]<br>[cloud_ssd: <font
        color='green'>SSD云盤</font>]<br>[cloud_essd: <font
        color='green'>ESSD云盤</font>]<br>[cloud: <font
        color='green'>普通云盤</font>]<br>[ephemeral_ssd: <font
        color='green'>本地SSD盤</font>]
    Label:
      en: Disk Type
      zh-cn: 數(shù)據(jù)盤類型
  DataDiskSize:
    Type: Number
    Description:
      en: 'Data disk space, range of values: 20-23768, units: GB.'
      zh-cn: 實例數(shù)據(jù)盤大小,單位為GiB。取值范圍:20~23768。
    Label:
      en: Data Disk Space
      zh-cn: 數(shù)據(jù)盤空間
    MinValue: 20
    MaxValue: 23768
    Default: 20
  SystemDiskSize:
    Default: 40
    Type: Number
    MinValue: 40
    MaxValue: 500
    Description:
      zh-cn: '系統(tǒng)盤大小, 取值范圍:[40, 500], 單位:GB。'
      en: 'System disk size, range of values: 40-500, units: GB.'
    Label:
      zh-cn: 系統(tǒng)盤空間
      en: System Disk Space
  EcsInstanceType:
    Type: String
    Label:
      en: Instance Type
      zh-cn: 實例類型
    AssociationProperty: 'ALIYUN::ECS::Instance::InstanceType'
    AssociationPropertyMetadata:
      ZoneId: '${ZoneId}'
      InstanceChargeType: '${InstanceChargeType}'
  LoadBalancerSpec:
    Type: String
    AssociationProperty: 'ALIYUN::SLB::Instance::InstanceType'
    Description:
      en: >-
        Instance specifications,</br>see detail:</b><a
        
        target='_blank'><b><font color='blue'>Performance Support
        Type</b></font></a>
      zh-cn: >-
        實例規(guī)格,</br>詳見:</b><a
        href='http://bestwisewords.com/document_detail/85939.html'
        target='_blank'><b><font color='blue'>性能保障型</b></font></a>
    Label:
      en: Specifications
      zh-cn: 規(guī)格
    Default: slb.s1.small
  SystemDiskCategory:
    AssociationProperty: 'ALIYUN::ECS::Disk::DataDiskCategory'
    AssociationPropertyMetadata:
      InstanceType: '${EcsInstanceType}'
      ZoneId: '${ZoneId}'
    Type: String
    Description:
      en: >-
        <font color='blue'><b>Optional values:</b></font><br>[cloud_efficiency:
        <font color='green'>Efficient Cloud Disk</font>]<br>[cloud_ssd: <font
        color='green'>SSD Cloud Disk</font>]<br>[cloud_essd: <font
        color='green'>ESSD Cloud Disk</font>]<br>[cloud: <font
        color='green'>Cloud Disk</font>]<br>[ephemeral_ssd: <font
        color='green'>Local SSD Cloud Disk</font>]
      zh-cn: >-
        <font color='blue'><b>可選值:</b></font><br>[cloud_efficiency: <font
        color='green'>高效云盤</font>]<br>[cloud_ssd: <font
        color='green'>SSD云盤</font>]<br>[cloud_essd: <font
        color='green'>ESSD云盤</font>]<br>[cloud: <font
        color='green'>普通云盤</font>]<br>[ephemeral_ssd: <font
        color='green'>本地SSD盤</font>]
    Label:
      en: System Disk Category
      zh-cn: 系統(tǒng)盤類型
  DBInstanceEngineAndVersion:
    Type: String
    Description:
      zh-cn: 數(shù)據(jù)庫實例引擎類型加版本,默認為Mysql-8.0,現(xiàn)在支持Mysql/SQLServer/PostgreSQL/PPAS/MariaDB。
      en: >-
        Database instance engine type, default is 'ysql-8.0'.Support
        MySQL/SQLServer/PostgreSQL/PPAS/MariaDB now.
    Label:
      zh-cn: 類型加版本
      en: Engine And Version
    Default: MySQL-8.0
  DBInstanceClass:
    Label:
      zh-cn: 實例規(guī)格
      en: DB Instance Class
    Type: String
    Description:
      zh-cn: >-
        根據(jù)數(shù)據(jù)庫引擎的類型和可用的區(qū)域支持選擇實例規(guī)格;<br>請參見詳細信息:<a
        href='http://bestwisewords.com/document_detail/26312.html'
        target='_blank'><b><font color='blue'>實例規(guī)格表</font></b></a>
      en: >-
        Select the instance specification based on the type of database engine
        and the available area support;<br>see detail: <a
        
        target='_blank'><b><font color='blue'>Instance specification
        sheet</font></b></a>
    Default: rds.mysql.c1.large
    AssociationProperty: 'ALIYUN::RDS::Instance::InstanceType'
    AssociationPropertyMetadata:
      ZoneId: '${ZoneId}'
      InstanceChargeType: '${RdsDBInstancePayType}'
  DBInstanceStorage:
    Label:
      zh-cn: 實例存儲
      en: Storage
    Type: Number
    Description:
      zh-cn: RDS實例大小范圍為20-2000,每5個增量,單位為GB
      en: >-
        The size range of RDS instances is 20 - 2000, Incrementing in every 5,
        unit GB
    MinValue: 20
    MaxValue: 2000
    ConstraintDescription:
      zh-cn: RDS實例大小范圍為20-2000,每5個增量,單位為GB
      en: >-
        The size range of RDS instances is 20 - 2000, Incrementing in every 5,
        unit GB
    Default: 20
  DBInstanceNetType:
    AllowedValues:
      - Internet
      - Intranet
    Description:
      zh-cn: 數(shù)據(jù)庫實例網(wǎng)絡(luò)類型,默認為Intranet.Internet用于公共訪問,Intranet用于私人訪問。
      en: >-
        Database instance net type, default is Intranet.Internet for public
        access, Intranet for private access.
    Type: String
    Default: Intranet
    Label:
      zh-cn: 網(wǎng)絡(luò)類型
      en: Network Type
  ECSPeriodUnit:
    AssociationPropertyMetadata:
      Visible:
        Condition:
          'Fn::Not':
            'Fn::Equals':
              - '${InstanceChargeType}'
              - PostPaid
    Description:
      zh-cn: '云服務(wù)器預(yù)付費資源的購買時長周期,取值:[Week(周), Month(月)],<br>'
      en: 'ECS Purchase cycle of prepaid resource, value: [Week, Month]<br>'
    Default: Week
    AllowedValues:
      - Week
      - Month
    Label:
      zh-cn: 云服務(wù)器預(yù)付費資源的購買周期
      en: ECS Purchase cycle of prepaid resources
    Type: String
  ECSPeriod:
    AssociationPropertyMetadata:
      Visible:
        Condition:
          'Fn::Not':
            'Fn::Equals':
              - '${InstanceChargeType}'
              - PostPaid
    Description:
      zh-cn: >-
        云服務(wù)器預(yù)付費資源的購買時長,當(dāng)預(yù)付費資源的購買周期為Week時,取值范圍:[1,2,3,4];
        當(dāng)預(yù)付費資源的購買周期為Month時,取值:[1,2,3,4,5,6,7,8,9,12,24,36,48,60]<br>
      en: >-
        When the purchase cycle of prepaid resource is week, the value range is:
        [1,2,3,4]; when the purchase cycle of prepaid resource is month, the
        value is: [1,2,3,4,5,6,7,8,9,12,24,36,48,60]<br>
    Default: 1
    Label:
      zh-cn: 云服務(wù)器預(yù)付費資源的購買時長
      en: ECS Purchase duration of prepaid resources
    AllowedValues:
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      - 12
      - 24
      - 36
      - 48
      - 60
    Type: Number
  InstanceChargeType:
    Default: PostPaid
    Label:
      zh-cn: ECS實例的付費模式
      en: ECS Instance Billing Method
    Type: String
    Description:
      zh-cn: >-
        <font color='blue'><b>可選值:</b></font><br>[PostPaid: <font
        color='green'>按量付費。</font>]<br>[PrePaid: <font
        color='green'>預(yù)付費,包年包月。</font>]
      en: >-
        <font color='blue'><b>Optional values:</b></font><br>[PostPaid: <font
        color='green'>Pay as you go.</font>]<br> [PrePaid: <font
        color='green'>Prepaid, subscription.</font>]
    AllowedValues:
      - PostPaid
      - PrePaid
  SLBPayType:
    Default: PayOnDemand
    Label:
      zh-cn: SLB實例的付費模式
      en: SLB Instance Billing Method
    Type: String
    Description:
      zh-cn: >-
        <font color='blue'><b>可選值:</b></font><br>[PayOnDemand: <font
        color='green'>按量付費。</font>]<br>[PrePay: <font
        color='green'>預(yù)付費,包年包月。</font>]
      en: >-
        <font color='blue'><b>Optional values:</b></font><br>[PayOnDemand: <font
        color='green'>Pay as you go.</font>]<br> [PrePay: <font
        color='green'>Prepaid, subscription.</font>]
    AllowedValues:
      - PayOnDemand
      - PrePay
  SLBPricingCycle:
    AssociationPropertyMetadata:
      Visible:
        Condition:
          'Fn::Not':
            'Fn::Equals':
              - '${SLBPayType}'
              - PayOnDemand
    Description:
      zh-cn: '負載均衡預(yù)付費資源的購買時長周期,取值:[month(月), year(年)],<br>'
      en: 'SLB Purchase cycle of prepaid resource, value: [month, year]<br>'
    Default: month
    AllowedValues:
      - month
      - year
    Label:
      zh-cn: 負載均衡預(yù)付費資源的購買周期
      en: SLB Purchase cycle of prepaid resources
    Type: String
  SLBDuration:
    AssociationPropertyMetadata:
      Visible:
        Condition:
          'Fn::Not':
            'Fn::Equals':
              - '${SLBPayType}'
              - PayOnDemand
    Description:
      zh-cn: >-
        負載均衡預(yù)付費資源的購買時長,當(dāng)預(yù)付費資源的購買周期為month時,取值范圍:[1,2,3,4, 5,6,7,8,9];
        當(dāng)預(yù)付費資源的購買周期為year時,取值:[1,2,3]<br>
      en: >-
        When the purchase cycle of prepaid resource is week, the value range is:
        [1,2,3,4, 5,6,7,8,9]; when the purchase cycle of prepaid resource is
        month, the value is: [1,2,3]<br>
    Default: 1
    Label:
      zh-cn: 負載均衡預(yù)付費資源的購買時長
      en: SLB Purchase duration of prepaid resources
    AllowedValues:
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
    Type: Number
  RdsDBInstancePayType:
    Type: String
    Description:
      en: >-
        <font color='blue'><b>Optional values: </b></font><br>[PayOnDemand:<font
        color='green'>pay-as-you-go</font>]<br>[PrePay:<font
        color='green'>prepayment,monthly or annual</font>]<br><font
        color='blue'>The monthly instance can not create a database (db) and an
        account.
      zh-cn: >-
        <font color='blue'><b>付費類型;可選值:</b></font><br>[Postpaid:<font
        color='green'>按量付費</font>]<br>[Prepaid:<font
        color='green'>預(yù)付費,包月</font>]<br>預(yù)付費,包月實例不創(chuàng)建數(shù)據(jù)庫(db)和賬號。
    AllowedValues:
      - Postpaid
      - Prepaid
    Label:
      en: Payment Type
      zh-cn: 付費類型
    Default: Postpaid
  RdsPeriodType:
    AssociationPropertyMetadata:
      Visible:
        Condition:
          'Fn::Not':
            'Fn::Equals':
              - '${RdsDBInstancePayType}'
              - Postpaid
    Description:
      zh-cn: '數(shù)據(jù)庫實例預(yù)付費資源的購買時長周期,取值:[Month(月), Year(年)],<br>'
      en: 'Rds Purchase cycle of prepaid resource, value: [Month, Year]<br>'
    Default: Month
    AllowedValues:
      - Month
      - Year
    Label:
      zh-cn: 云數(shù)據(jù)庫預(yù)付費資源的購買周期
      en: RDS Purchase cycle of prepaid resources
    Type: String
  RdsPeriod:
    AssociationPropertyMetadata:
      Visible:
        Condition:
          'Fn::Not':
            'Fn::Equals':
              - '${RdsDBInstancePayType}'
              - Postpaid
    Description:
      zh-cn: >-
        數(shù)據(jù)庫實例預(yù)付費資源的購買時長,當(dāng)預(yù)付費資源的購買周期為Month時,取值范圍:[1,2,3,4, 5,6,7,8,9];
        當(dāng)預(yù)付費資源的購買周期為Year時,取值:[1,2,3]<br>
      en: >-
        When the purchase cycle of prepaid resource is Month, the value range
        is: [1,2,3,4, 5,6,7,8,9]; when the purchase cycle of prepaid resource is
        Year, the value is: [1,2,3]<br>
    Default: 1
    Label:
      zh-cn: 數(shù)據(jù)庫實例預(yù)付費資源的購買時長
      en: Rds Purchase duration of prepaid resources
    AllowedValues:
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
    Type: Number
Resources:
  EcsInstanceGroup:
    Type: 'ALIYUN::ECS::InstanceGroup'
    Properties:
      Period:
        Ref: ECSPeriod
      PeriodUnit:
        Ref: ECSPeriodUnit
      IoOptimized: optimized
      DiskMappings:
        - Category:
            Ref: DataDiskCategory
          Device: /dev/xvdb
          Size:
            Ref: DataDiskSize
      SystemDiskSize:
        Ref: SystemDiskSize
      InstanceChargeType:
        Ref: InstanceChargeType
      SecurityGroupId:
        Ref: SecurityGroup
      VSwitchId:
        Ref: VSwitch
      MaxAmount: 2
      SystemDiskCategory:
        Ref: SystemDiskCategory
      InstanceName:
        'Fn::Join':
          - '-'
          - - StackId
            - Ref: 'ALIYUN::StackId'
      VpcId:
        Ref: VpcId
      ImageId: centos_7
      InstanceType:
        Ref: EcsInstanceType
      HostName:
        'Fn::Join':
          - '-'
          - - StackId
            - Ref: 'ALIYUN::StackId'
      Password:
        Ref: InstancePassword
      AllocatePublicIP: false
  Slb:
    Type: 'ALIYUN::SLB::LoadBalancer'
    Properties:
      VpcId:
        Ref: VpcId
      VSwitchId:
        Ref: VSwitch
      LoadBalancerName:
        'Fn::Join':
          - '-'
          - - StackId
            - Ref: 'ALIYUN::StackId'
      PayType:
        Ref: SLBPayType
      PricingCycle:
        Ref: SLBPricingCycle
      Duration:
        Ref: SLBDuration
      AddressType: intranet
      LoadBalancerSpec:
        Ref: LoadBalancerSpec
      AutoPay: true
  SlbBackendServerAttachment:
    DependsOn:
      - EcsInstanceGroup
    Type: 'ALIYUN::SLB::BackendServerAttachment'
    Properties:
      BackendServerList:
        'Fn::GetAtt':
          - EcsInstanceGroup
          - InstanceIds
      LoadBalancerId:
        Ref: Slb
      BackendServerWeightList:
        - 100
        - 100
  SlbListener:
    DependsOn: Slb
    Type: 'ALIYUN::SLB::Listener'
    Properties:
      Persistence:
        CookieTimeout: 60
        StickySession: 'on'
        PersistenceTimeout: 180
        XForwardedFor: 'off'
        StickySessionType: insert
      ListenerPort: 3306
      Bandwidth: -1
      HealthCheck:
        HttpCode: 'http_2xx,http_3xx,http_4xx,http_5xx'
        HealthCheckType: tcp
        UnhealthyThreshold: 3
        Timeout: 5
        HealthyThreshold: 3
        Port: 3306
        URI: /
        Interval: 2
      LoadBalancerId:
        Ref: Slb
      BackendServerPort: 3306
      Protocol: tcp
  Database:
    Type: 'ALIYUN::RDS::DBInstance'
    Properties:
      PayType:
        Ref: RdsDBInstancePayType
      Period:
        Ref: RdsPeriod
      PeriodType:
        Ref: RdsPeriodType
      VpcId:
        Ref: VpcId
      VSwitchId:
        Ref: VSwitch
      Engine:
        'Fn::Select':
          - '0'
          - 'Fn::Split':
              - '-'
              - Ref: DBInstanceEngineAndVersion
      EngineVersion:
        'Fn::Select':
          - '1'
          - 'Fn::Split':
              - '-'
              - Ref: DBInstanceEngineAndVersion
      DBInstanceClass:
        Ref: DBInstanceClass
      DBInstanceStorage:
        Ref: DBInstanceStorage
      DBInstanceNetType:
        Ref: DBInstanceNetType
      SecurityIPList:
        Fn::Join:
          - ','
          - Fn::GetAtt:
              - EcsInstanceGroup
              - PrivateIps
Outputs:
  LoadBalancerId:
    Description:
      en: The ID of load balance created.
      zh-cn: 已創(chuàng)建負載平衡的ID。
    Value:
      'Fn::GetAtt':
        - Slb
        - LoadBalancerId
  SlbIpAddress:
    Description:
      en: The IP address of the load balancer.
      zh-cn: 負載均衡器的IP地址。
    Value:
      'Fn::GetAtt':
        - Slb
        - IpAddress
Metadata:
  'ALIYUN::ROS::Interface':
    ParameterGroups:
      - Parameters:
          - ZoneId
          - VpcId
          - VSwitch
          - SecurityGroup
        Label:
          default:
            en: NetWork And SecurityGroup
            zh-cn: 網(wǎng)絡(luò)和安全組
      - Parameters:
          - InstanceChargeType
          - ECSPeriodUnit
          - ECSPeriod
          - EcsInstanceType
          - SystemDiskCategory
          - SystemDiskSize
          - DataDiskCategory
          - DataDiskSize
          - InstancePassword
        Label:
          default:
            en: ECS
            zh-cn: 云服務(wù)器
      - Parameters:
          - SLBPayType
          - SLBPricingCycle
          - SLBDuration
          - LoadBalancerSpec
        Label:
          default:
            en: SLB
            zh-cn: 負載均衡
      - Parameters:
          - RdsDBInstancePayType
          - RdsPeriodType
          - RdsPeriod
          - DBInstanceEngineAndVersion
          - DBInstanceClass
          - DBInstanceStorage
          - DBInstanceNetType
        Label:
          default:
            en: RDS
            zh-cn: 云數(shù)據(jù)庫