Nome do modelo
ACS-ECS-BulkyAllocateAndAssociateEipAddress: aloca endereços IP elásticos (EIPs) em lote e os associa a instâncias de produtos de nuvem na mesma região.
Descrição
Aloca endereços IP elásticos (EIPs) em lote e os associa a instâncias de produtos de nuvem na mesma região.
Tipo de modelo
Automation
Proprietário
Alibaba Cloud
Parâmetros de entrada
|
Nome do parâmetro |
Descrição |
Tipo |
Obrigatório |
Valor padrão |
Restrições |
|
instanceIds |
IDs das instâncias para associar aos EIPs. |
List |
Yes |
||
|
regionId |
ID da região. |
String |
No |
{{ ACS::RegionId }} |
|
|
instanceType |
Tipo de instância de produto de nuvem para associar a um EIP. |
String |
No |
NetworkInterface |
|
|
internetChargeType |
Método de faturamento do EIP. |
String |
No |
PayByBandwidth |
|
|
bandwidth |
Largura de banda máxima do EIP. |
Number |
No |
5 |
|
|
rateControl |
Configurações de simultaneidade para execução da tarefa. |
Json |
No |
{‘Mode’: ‘Concurrency’, ‘MaxErrors’: 0, ‘Concurrency’: 15} |
|
|
OOSAssumeRole |
Função RAM que o OOS assume. |
String |
No |
“” |
Parâmetros de saída
Nenhum
Política de acesso necessária
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:AllocateEipAddress",
"ecs:DescribeEipAddresses",
"ecs:DescribeNetworkInterfaces"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"vpc:AssociateEipAddress"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Detalhes
Detalhes do ACS-ECS-BulkyAllocateAndAssociateEipAddress
Conteúdo do modelo
FormatVersion: OOS-2019-06-01
Description:
en: Creates and associates elastic IP addresses (EIPs) in batch with cloud product
instances in the same region.
zh-cn: Creates and associates elastic IP addresses (EIPs) in batch with cloud product
instances in the same region.
name-en: ACS-ECS-BulkyAllocateAndAssociateEipAddress
name-zh-cn: Creates and associates elastic IP addresses (EIPs) in batch with cloud
product instances in the same region.
categories:
- instance_manage
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: Region ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceIds:
Label:
en: InstanceIds
zh-cn: Instance IDs
Description:
en: The list of instance IDs to associate with elastic IP addresses.
zh-cn: The list of instance IDs to associate with elastic IP addresses.
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
instanceType:
Label:
en: InstanceType
zh-cn: Instance type
Description:
en: The type of the cloud product instance to associate.
zh-cn: The type of the cloud product instance to associate.
Type: String
AllowedValues:
- Nat
- SlbInstance
- EcsInstance
- NetworkInterface
- HaVip
Default: NetworkInterface
internetChargeType:
Label:
en: InternetChargeType
zh-cn: EIP billing method
Description:
en: 'The billing method for the EIP. Valid values: PayByBandwidth (pay-by-bandwidth)
and PayByTraffic (pay-by-data-transfer).'
zh-cn: 'The billing method for the EIP. Valid values: PayByBandwidth (pay-by-bandwidth)
and PayByTraffic (pay-by-data-transfer).'
Type: String
AllowedValues:
- PayByBandwidth
- PayByTraffic
Default: PayByBandwidth
bandwidth:
Label:
en: Bandwidth
zh-cn: EIP peak bandwidth
Description:
en: 'The peak bandwidth of the EIP, in Mbps.'
zh-cn: 'The peak bandwidth of the EIP, in Mbps.'
Type: Number
Default: 5
rateControl:
Label:
en: RateControl
zh-cn: Task execution concurrency
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 15
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: RAM role for OOS
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: associateEipAddressToENI
Action: ACS::ECS::AllocateAndAssociateEipAddress
Description:
en: Associates an EIP with an instance.
zh-cn: Associates an elastic IP address (EIP) with a cloud product instance.
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: Configuration Parameters
en: Configuration Parameters
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: Advanced Options
en: Advanced Options