Nama Template
ACS-ECS-BulkyAllocateAndAssociateEipAddress
Deskripsi Template
Membuat beberapa elastic IP addresses (EIPs) sekaligus dan mengaitkannya dengan beberapa instance Elastic Compute Service (ECS) di wilayah yang sama.
Tipe Template
Otomatis
Pemilik
Alibaba Cloud
Parameter Input
Parameter | Deskripsi | Tipe | Diperlukan | Nilai Default | Batasan |
instanceIds | ID instance yang ingin Anda kaitkan dengan EIPs. | List | Ya | ||
regionId | ID wilayah. | String | Tidak | {{ ACS::RegionId }} | |
instanceType | Tipe instance yang ingin Anda kaitkan dengan EIPs. | String | Tidak | NetworkInterface | |
internetChargeType | Metode penagihan EIPs. | String | Tidak | PayByBandwidth | |
bandwidth | Bandwidth maksimum EIPs. | Number | Tidak | 5 | |
rateControl | zh-cn: deskripsi dalam bahasa Cina | Json | Tidak | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 15} | |
OOSAssumeRole | Peran Resource Access Management (RAM) yang diasumsikan oleh CloudOps Orchestration Service (OOS). | String | Tidak | "" |
Parameter Output
Tidak ada
Kebijakan Izin yang Diperlukan untuk Menjalankan Template
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:AllocateEipAddress",
"ecs:DescribeEipAddresses",
"ecs:DescribeNetworkInterfaces"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"vpc:AssociateEipAddress"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Referensi
Untuk informasi lebih lanjut, lihat ACS-ECS-BulkyAllocateAndAssociateEipAddress.yml di GitHub.
Konten Template
FormatVersion: OOS-2019-06-01
Description:
en: Bulky add EIPs to common bandwidth package
zh-cn: the description in Chinese
name-en: ACS-ECS-BulkyAllocateAndAssociateEipAddress
name-zh-cn: the description in Chinese
categories:
- instance_manage
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: the description in Chinese
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceIds:
Label:
en: InstanceIds
zh-cn: the description in Chinese
Description:
en: The ID list of the instance to be associated with the Elastic IP address
zh-cn: the description in Chinese
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
instanceType:
Label:
en: InstanceType
zh-cn: the description in Chinese
Description:
en: The type of the cloud product instance to associate
zh-cn: the description in Chinese
Type: String
AllowedValues:
- Nat
- SlbInstance
- EcsInstance
- NetworkInterface
- HaVip
Default: NetworkInterface
internetChargeType:
Label:
en: InternetChargeType
zh-cn: the description in Chinese
Description:
en: EIP measurement method
zh-cn: the description in Chinese
Type: String
AllowedValues:
- PayByBandwidth
- PayByTraffic
Default: PayByBandwidth
bandwidth:
Label:
en: Bandwidth
zh-cn: the description in Chinese
Description:
en: 'Peak bandwidth of eip, unit: Mbps'
zh-cn: the description in Chinese
Type: Number
Default: 5
rateControl:
Label:
en: RateControl
zh-cn: the description in Chinese
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 15
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: the description in Chinese
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: associateEipAddressToENI
Action: ACS::ECS::AllocateAndAssociateEipAddress
Description:
en: Associate Eip address to instance
zh-cn: the description in Chinese
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: the description in Chinese
en: Configure Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: the description in Chinese
en: Control Options