テンプレート名
ACS-ECD-BulkyRunCommand
テンプレートの説明
複数のクラウドデスクトップでコマンドを同時に実行します。
テンプレートタイプ
自動化
所有者
Alibaba Cloud
入力パラメータ
パラメータ | 説明 | データ型 | 必須 | デフォルト値 | 制限 |
commandType | クラウドアシスタントコマンドのタイプ。 | String | はい | ||
commandContent | クラウドアシスタントコマンドの内容。 | String | はい | ||
regionId | リージョン ID。 | String | いいえ | {{ ACS::RegionId }} | |
desktopIds | クラウドデスクトップの ID。 | List | いいえ | [] | |
contentEncoding | コマンドのエンコード方式。 | String | いいえ | PlainText | |
timeout | コマンドのタイムアウト期間。 | Number | いいえ | 600 | |
rateControl | レート制御設定。 | Json | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によってアシュームされる RAM ロール。 | String | いいえ | "" |
出力パラメータ
パラメータ | 説明 | データ型 |
commandOutputs | List |
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecd:DescribeInvocations",
"ecd:RunCommand"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
テンプレートコンテンツ
FormatVersion: OOS-2019-06-01
Description:
en: Bulky run command on ECD desktops
name-en: ACS-ECD-BulkyRunCommand
Parameters:
regionId:
Label:
en: RegionId
Type: String
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
desktopIds:
Label:
en: DesktopIds
Type: List
Default: []
commandType:
Label:
en: CommandType
Type: String
AllowedValues:
- RunBatScript
- RunPowerShellScript
contentEncoding:
Label:
en: ContentEncoding
Type: String
AllowedValues:
- PlainText
- Base64
Default: PlainText
commandContent:
Label:
en: CommandContent
Type: String
AssociationProperty: Code
timeout:
Label:
en: Timeout
Type: Number
Default: 600
rateControl:
Label:
en: RateControl
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: runCommand
Action: ACS::ECD::RunCommand
Description:
en: Run command on desktops
Properties:
regionId: '{{ regionId }}'
desktopId: '{{ ACS::TaskLoopItem }}'
commandType: '{{ commandType }}'
contentEncoding: '{{ contentEncoding }}'
commandContent: '{{ commandContent }}'
timeout: '{{ timeout }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ desktopIds }}'
Outputs:
commandOutputs:
AggregateType: Fn::ListJoin
AggregateField: commandOutput
Outputs:
commandOutput:
Type: String
ValueSelector: invocationOutput
Outputs:
commandOutputs:
Type: List
Value: '{{ runCommand.commandOutputs }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- commandType
- contentEncoding
- commandContent
- timeout
Label:
default:
en: Configure Parameters
- Parameters:
- regionId
- desktopIds
Label:
default:
en: Select ECD Desktops
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Control Options