テンプレート名
ACS-ECS-BulkyAllocateAndAssociateEipAddress
テンプレートの説明
一度に複数の Elastic IP アドレス (EIP) を作成し、同じリージョン内の複数の Elastic Compute Service (ECS) インスタンスに EIP を関連付けます。
テンプレートタイプ
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | タイプ | 必須 | デフォルト値 | 制限 |
instanceIds | EIP を関連付けるインスタンスの ID。 | リスト | はい | ||
regionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
instanceType | EIP を関連付けるインスタンスのタイプ。 | 文字列 | いいえ | NetworkInterface | |
internetChargeType | EIP の課金方法。 | 文字列 | いいえ | PayByBandwidth | |
bandwidth | EIP の最大帯域幅。 | 数値 | いいえ | 5 | |
rateControl | zh-cn: 中国語の説明 | JSON | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 15} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) がアシュームする Resource Access Management (RAM) ロール。 | 文字列 | いいえ | "" |
出力パラメーター
なし
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"ecs:AllocateEipAddress",
"ecs:DescribeEipAddresses",
"ecs:DescribeNetworkInterfaces"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"vpc:AssociateEipAddress"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
参照
詳細については、GitHub の ACS-ECS-BulkyAllocateAndAssociateEipAddress.yml をご参照ください。
テンプレートコンテンツ
FormatVersion: OOS-2019-06-01
Description:
en: Bulky add EIPs to common bandwidth package
zh-cn: 中国語の説明
name-en: ACS-ECS-BulkyAllocateAndAssociateEipAddress
name-zh-cn: 中国語の説明
categories:
- instance_manage
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: 中国語の説明
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
instanceIds:
Label:
en: InstanceIds
zh-cn: 中国語の説明
Description:
en: The ID list of the instance to be associated with the Elastic IP address
zh-cn: 中国語の説明
AssociationProperty: ALIYUN::ECS::Instance::InstanceId
AssociationPropertyMetadata:
RegionId: regionId
Type: List
instanceType:
Label:
en: InstanceType
zh-cn: 中国語の説明
Description:
en: The type of the cloud product instance to associate
zh-cn: 中国語の説明
Type: String
AllowedValues:
- Nat
- SlbInstance
- EcsInstance
- NetworkInterface
- HaVip
Default: NetworkInterface
internetChargeType:
Label:
en: InternetChargeType
zh-cn: 中国語の説明
Description:
en: EIP measurement method
zh-cn: 中国語の説明
Type: String
AllowedValues:
- PayByBandwidth
- PayByTraffic
Default: PayByBandwidth
bandwidth:
Label:
en: Bandwidth
zh-cn: 中国語の説明
Description:
en: 'Peak bandwidth of eip, unit: Mbps'
zh-cn: 中国語の説明
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: 中国語の説明
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: associateEipAddressToENI
Action: ACS::ECS::AllocateAndAssociateEipAddress
Description:
en: Associate Eip address to instance
zh-cn: 中国語の説明
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