-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS-CN-BulkyUpgradeServiceInstance.yml
93 lines (93 loc) · 2.53 KB
/
ACS-CN-BulkyUpgradeServiceInstance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FormatVersion: OOS-2019-06-01
Description:
en: Use this template to bulky upgrade CN service instance
zh-cn: 使用这个模板在计算巢商家侧批量升级服务实例
name-en: ACS-CN-BulkyUpgradeServiceInstance
name-zh-cn: 计算巢商家侧批量升级服务实例
categories:
- computenest_supplier
Parameters:
RegionId:
Type: String
Label:
en: RegionId
zh-cn: 地域ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
Targets:
Type: Json
Label:
en: TargetInstance
zh-cn: 目标实例
AssociationProperty: Targets
AssociationPropertyMetadata:
ResourceType: ALIYUN::ComputeNestSupplier::Instance
RegionId: RegionId
SupportUpgradeVersion: ${ServiceVersion}
ServiceVersion:
Label:
en: UpgradeServiceVersion
zh-cn: 升级服务版本
Type: String
AssociationProperty: ALIYUN::ComputeNestSupplier::Service::ServiceVersion
RateControl:
Label:
en: RateControl
zh-cn: 任务执行的并发比率
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 1
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: GetServiceInstance
Description:
en: Views the compute nest supplier instances
zh-cn: 计算巢商家侧获取服务实例
Action: ACS::SelectTargets
Properties:
ResourceType: ALIYUN::ComputeNestSupplier::Instance
RegionId: '{{ RegionId }}'
Filters:
- '{{ Targets }}'
Outputs:
InstanceIds:
Type: List
ValueSelector: ServiceInstances[].ServiceInstanceId
- Name: UpgradeServiceInstance
Description:
en: Upgrade service instance
zh-cn: 计算巢商家侧升级服务实例
Action: ACS::CN::UpgradeServiceInstance
Properties:
RegionId: '{{ RegionId }}'
ServiceInstanceId: "{{ ACS::TaskLoopItem }}"
ServiceVersion: "{{ ServiceVersion }}"
Loop:
Items: '{{ GetServiceInstance.InstanceIds }}'
RateControl: '{{ RateControl }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- RegionId
- ServiceVersion
- Targets
Label:
default:
zh-cn: 配置参数
en: Configure Parameters
- Parameters:
- RateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高级选项
en: Control Options