Nama Templat
ACS-ECS-BulkyReplaceSystemDiskInSLBVServerGroup: Mengganti disk sistem dari beberapa Instance ECS dalam kelompok layanan virtual SLB.
Deskripsi templat
Mengganti disk sistem dari beberapa Instance ECS dalam kelompok layanan virtual SLB.
Jenis templat
Automation
Pemilik
Alibaba Cloud
Parameter input
|
Nama parameter |
Deskripsi |
Tipe |
Wajib |
Nilai default |
Batasan |
|
imageId |
ID image sumber. |
String |
Ya |
||
|
VServerGroupId |
ID kelompok server. |
String |
Ya |
||
|
rateControl |
Rasio konkurensi untuk eksekusi task. |
JSON |
Tidak |
{‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 1} |
|
|
OOSAssumeRole |
Peran RAM yang diasumsikan oleh OOS. |
String |
Tidak |
“” |
Parameter output
|
Nama parameter |
Deskripsi |
Tipe |
|
newSystemDiskIds |
List |
Kebijakan akses yang diperlukan
{
"Version": "1",
"Statement": [
{
"Action": [
"slb:DescribeVServerGroupAttribute",
"slb:SetVServerGroupAttribute"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"ecs:DescribeDisks",
"ecs:DescribeInstances",
"ecs:ReplaceSystemDisk",
"ecs:StartInstance",
"ecs:StopInstance"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Detail
Detail ACS-ECS-BulkyReplaceSystemDiskInSLBVServerGroup
Konten templat
FormatVersion: OOS-2019-06-01
Description:
en: Bulky replaces system disk of ECS instances in Vserver group
zh-cn: Batch replaces the system disks of ECS instances in an SLB virtual service group.
name-en: ACS-ECS-BulkyReplaceSystemDiskWithSLBVServerGroup
name-zh-cn: Batch replaces the system disks of ECS instances in an SLB virtual service group.
categories:
- slb_management
Parameters:
imageId:
Label:
en: ImageId
zh-cn: Source image ID
Type: String
AssociationProperty: 'ALIYUN::ECS::Image::ImageId'
VServerGroupId:
Label:
en: VServerGroupId
zh-cn: Server group ID
Type: String
rateControl:
Label:
en: RateControl
zh-cn: The concurrency ratio for task execution
Type: JSON
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 1
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: The RAM role that OOS assumes
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: describeVServerGroupAttribute
Action: ACS::ExecuteApi
Description:
en: Views vserver group attribute
zh-cn: Gets the properties of the service group.
Properties:
Service: SLB
API: DescribeVServerGroupAttribute
Parameters:
VServerGroupId: '{{ VServerGroupId }}'
Outputs:
BackendServers:
Type: List
ValueSelector: BackendServers.BackendServer[]
- Name: replaceSystemDisk
Action: ACS::ECS::ElegantReplaceSystemDiskInSLBVServerGroup
Description:
en: Replaces the system disk of ECS instances
zh-cn: Replaces the system disk.
Properties:
VServerGroupId: '{{ vServerGroupId }}'
imageId: '{{ imageId }}'
serverId:
'Fn::Select':
- ServerId
- '{{ ACS::TaskLoopItem }}'
weight:
'Fn::Select':
- Weight
- '{{ ACS::TaskLoopItem }}'
type:
'Fn::Select':
- Type
- '{{ ACS::TaskLoopItem }}'
port:
'Fn::Select':
- Port
- '{{ ACS::TaskLoopItem }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ describeVServerGroupAttribute.BackendServers }}'
Outputs:
newSystemDiskIds:
AggregateType: Fn::ListJoin
AggregateField: newSystemDiskId
Outputs:
newSystemDiskId:
Type: String
ValueSelector: newSystemDiskId
Outputs:
newSystemDiskIds:
Type: List
Value: '{{ replaceSystemDisk.newSystemDiskIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- imageId
- VServerGroupId
Label:
default:
zh-cn: Configure parameters
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: Advanced options
en: Advanced options