全部产品
Search
文档中心

资源编排:ALIYUN::ARMS::AddonRelease

更新时间:Aug 12, 2024

ALIYUN::ARMS::AddonRelease类型用于安装Addon信息。

语法

{
  "Type": "ALIYUN::ARMS::AddonRelease",
  "Properties": {
    "AddonVersion": String,
    "EnvironmentId": String,
    "Name": String,
    "ReleaseName": String,
    "Values": Map
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AddonVersion

String

Addon 版本。

EnvironmentId

String

环境 ID。

Name

String

Addon 名称。

ReleaseName

String

安装后的插件名称。

如果不指定则生成默认规则名称。

Values

Map

输入的元数据。

返回值

Fn::GetAtt

  • EnvironmentId:环境 ID。

  • Config:AddonRelease 的配置信息。

  • ReleaseName:安装后的插件名称。

  • Release:安装后的 Release信息。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionResource:
        Type: ALIYUN::ARMS::AddonRelease
        Properties:
          EnvironmentId: env-xxxx
          AddonVersion: 0.0.1
          ReleaseName: mysql-1695372983039
          Name: mysql
    Outputs:
      EnvironmentId:
        Description: The environment ID.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - EnvironmentId
      Config:
        Description: AddonRelease configuration information.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Config
      ReleaseName:
        Description: The name of the add-on.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - ReleaseName
      Release:
        Description: Release information.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Release
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::ARMS::AddonRelease",
          "Properties": {
            "EnvironmentId": "env-xxxx",
            "AddonVersion": "0.0.1",
            "ReleaseName": "mysql-1695372983039",
            "Name": "mysql"
          }
        }
      },
      "Outputs": {
        "EnvironmentId": {
          "Description": "The environment ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "EnvironmentId"
            ]
          }
        },
        "Config": {
          "Description": "AddonRelease configuration information.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Config"
            ]
          }
        },
        "ReleaseName": {
          "Description": "The name of the add-on.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ReleaseName"
            ]
          }
        },
        "Release": {
          "Description": "Release information.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Release"
            ]
          }
        }
      }
    }