模板名稱
ACS-ECS-BulkyAllocateAndAssociateEipAddress 批量創建并綁定彈性公網IP(EIP)到同地域的云產品實例上
模板描述
批量創建并綁定彈性公網IP(EIP)到同地域的云產品實例上
模板類型
自動化
所有者
Alibaba Cloud
輸入參數
參數名稱 | 描述 | 類型 | 是否必填 | 默認值 | 約束 |
instanceIds | 要綁定EIP的實例ID列表 | List | 是 | ||
regionId | 地域ID | String | 否 | {{ ACS::RegionId }} | |
instanceType | 要綁定EIP的實例的類型 | String | 否 | NetworkInterface | |
internetChargeType | EIP的計量方式 | String | 否 | PayByBandwidth | |
bandwidth | EIP的帶寬峰值 | Number | 否 | 5 | |
rateControl | 任務執行的并發比率 | Json | 否 | {‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 15} | |
OOSAssumeRole | OOS扮演的RAM角色 | String | 否 | “” |
輸出參數
無
執行此模板需要的權限策略
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:AllocateEipAddress",
"ecs:DescribeEipAddresses",
"ecs:DescribeNetworkInterfaces"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"vpc:AssociateEipAddress"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳情
ACS-ECS-BulkyAllocateAndAssociateEipAddress詳情
模板內容
FormatVersion: OOS-2019-06-01
Description:
en: Bulky add EIPs to common bandwidth package
zh-cn: 批量創建并綁定彈性公網IP(EIP)到同地域的云產品實例上
name-en: ACS-ECS-BulkyAllocateAndAssociateEipAddress
name-zh-cn: 批量創建并綁定彈性公網IP(EIP)到同地域的云產品實例上
categories:
- instance_manage
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: 地域ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceIds:
Label:
en: InstanceIds
zh-cn: 要綁定EIP的實例ID列表
Description:
en: The ID list of the instance to be associated with the Elastic IP address
zh-cn: 要綁定EIP的實例ID列表
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
instanceType:
Label:
en: InstanceType
zh-cn: 要綁定EIP的實例的類型
Description:
en: The type of the cloud product instance to associate
zh-cn: 要綁定EIP的實例的類型
Type: String
AllowedValues:
- Nat
- SlbInstance
- EcsInstance
- NetworkInterface
- HaVip
Default: NetworkInterface
internetChargeType:
Label:
en: InternetChargeType
zh-cn: EIP的計量方式
Description:
en: EIP measurement method
zh-cn: EIP的計量方式(PayByBandwidth:按帶寬計費,PayByTraffic:按流量計費)
Type: String
AllowedValues:
- PayByBandwidth
- PayByTraffic
Default: PayByBandwidth
bandwidth:
Label:
en: Bandwidth
zh-cn: EIP的帶寬峰值
Description:
en: 'Peak bandwidth of eip, unit: Mbps'
zh-cn: EIP的帶寬峰值(Mbps)
Type: Number
Default: 5
rateControl:
Label:
en: RateControl
zh-cn: 任務執行的并發比率
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 15
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: associateEipAddressToENI
Action: ACS::ECS::AllocateAndAssociateEipAddress
Description:
en: Associate Eip address to instance
zh-cn: 將彈性公網IP(EIP)綁定到云產品實例上
Properties:
regionId: '{{ regionId }}'
instanceId: '{{ ACS::TaskLoopItem }}'
instanceType: '{{ instanceType }}'
internetChargeType: '{{ internetChargeType }}'
bandwidth: '{{ bandwidth }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ instanceIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- instanceIds
- instanceType
- internetChargeType
- bandwidth
Label:
default:
zh-cn: 配置參數
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高級選項
en: Control Options
文檔內容是否對您有幫助?