テンプレート名
ACS-ECS-BulkyModifyInstanceAttributes
テンプレートの説明
複数の Elastic Compute Service (ECS) インスタンスの情報を一度に変更します。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
instanceAttributes | ECS インスタンスに関する情報。 | Json | はい | ||
rateControl | レート制御設定。 | Json | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって引き受けられる Resource Access Management (RAM) ロール。 | String | いいえ | "" |
出力パラメーター
なし
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:ModifyInstanceAttribute"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
詳細については、GitHub の ACS-ECS-BulkyModifyInstanceAttributes.yml をご参照ください。
テンプレートの内容
FormatVersion: OOS-2019-06-01
Description:
en: Bulky modify the information of an ECS instance
zh-cn: the description in Chinese
name-en: ACS-ECS-BulkyModifyInstanceAttributes
name-zh-cn: the description in Chinese
categories:
- instance_manage
Parameters:
instanceAttributes:
Description:
en: 'Format: [{"regionId": "cn-xxx", "instanceId": "i-xxx", "hostName": "", "instanceName": "", "description": "", securityGroups: ["sg-xxx"]}]'
zh-cn: the description in Chinese
Label:
en: InstanceAttributes
zh-cn: the description in Chinese
Type: Json
rateControl:
Label:
en: RateControl
zh-cn: the description in Chinese
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: the description in Chinese
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: modifyInstanceAttribute
Action: ACS::ECS::ModifyInstanceAttribute
Description:
en: Modify the information of an ECS instance
zh-cn: the description in Chinese
Properties:
instanceAttributes: '{{ instanceAttributes }}'
instanceId: '{{ ACS::TaskLoopItem }}'
Loop:
RateControl: '{{ rateControl }}'
Items:
'Fn::Jq':
- All
- '.[].instanceId'
- '{{ instanceAttributes }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- instanceAttributes
Label:
default:
zh-cn: the description in Chinese
en: Instance Attributes
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: the description in Chinese
en: Control Options