Template name
ACS-SLB-BulkyModifyLoadBalancerInstanceSpec
Template description
Changes the instance type of multiple Server Load Balancer (SLB) instances at a time.
Template type
Automated
Owner
Alibaba Cloud
Input parameters
Parameter | Description | Type | Required | Default value | Limit |
loadBalancerIds | The IDs of the SLB instances. | List | Yes | ||
loadBalancerSpec | The instance type of the SLB instances. | String | Yes | ||
autoPay | Specifies whether to enable automatic payment. | Boolean | Yes | ||
regionId | The region ID. | String | No | {{ ACS::RegionId }} | |
rateControl | The rate control settings. | Json | No | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | The Resource Access Management (RAM) role that is assumed by CloudOps Orchestration Service (OOS). | String | No | "" |
Output parameters
None
Permission policy that is required to execute the template
{
"Version": "1",
"Statement": [
{
"Action": [
"slb:ModifyLoadBalancerInstanceSpec"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
References
For more information, see ACS-SLB-BulkyModifyLoadBalancerInstanceSpec at GitHub.
Template content
FormatVersion: OOS-2019-06-01
Description:
en: Bulky modify load balancer instance spec
name-en: ACS-SLB-BulkyModifyLoadBalancerInstanceSpec
categories:
- computenest
Parameters:
regionId:
Type: String
Label:
en: RegionId
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
loadBalancerIds:
Label:
en: LoadBalancerIds
AssociationProperty: ALIYUN::SLB::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
loadBalancerSpec:
Label:
en: LoadBalancerSpec
Type: String
AssociationProperty: ALIYUN::SLB::Instance::InstanceType
AssociationPropertyMetadata:
RegionId: regionId
AllowedValues:
- slb.s1.small
- slb.s2.small
- slb.s2.medium
- slb.s3.small
- slb.s3.medium
- slb.s3.large
autoPay:
Label:
en: AutoPay
Type: Boolean
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: modifyLoadBalancerInstanceSpec
Action: ACS::ExecuteApi
Description:
en: Modify load balancer instance spec
Properties:
Service: SLB
API: ModifyLoadBalancerInstanceSpec
Parameters:
RegionId: '{{ regionId }}'
LoadBalancerId: '{{ ACS::TaskLoopItem }}'
LoadBalancerSpec: '{{ loadBalancerSpec }}'
AutoPay: '{{ autoPay }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ loadBalancerIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- loadBalancerIds
- loadBalancerSpec
- autoPay
Label:
default:
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
en: Control Options