すべてのプロダクト
Search
ドキュメントセンター

CloudOps Orchestration Service:ACS-ECS-BulkyAllocateAndAssociateEipAddress

最終更新日:Jun 23, 2026

テンプレート名

ACS-ECS-BulkyAllocateAndAssociateEipAddress は、同一リージョン内のクラウド製品インスタンスに Elastic IP アドレス (EIP) を一括で割り当て、関連付けます。

今すぐ実行

説明

Elastic IP アドレス (EIP) を一括で割り当て、同一リージョン内のクラウド製品インスタンスに関連付けます。

テンプレートタイプ

オートメーション

所有者

Alibaba Cloud

入力パラメーター

パラメーター名

説明

タイプ

必須

デフォルト値

制約

instanceIds

EIP を関連付けるインスタンスの ID のリスト。

リスト

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

instanceType

EIP を関連付けるクラウド製品インスタンスのタイプ。

文字列

いいえ

NetworkInterface

internetChargeType

EIP の課金方法。

文字列

いいえ

PayByBandwidth

bandwidth

EIP の最大帯域幅。

数値

いいえ

5

rateControl

タスク実行の同時実行設定。

JSON

いいえ

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 15}

OOSAssumeRole

OOS が引き受ける RAM ロール。

文字列

いいえ

""

出力パラメーター

なし

必要なアクセスポリシー

{
    "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: 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.
  ja: 同一リージョン内のクラウド製品インスタンスに、Elastic IP アドレス (EIP) を一括で割り当て、関連付けます。
  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.
  ja: ACS-ECS-BulkyAllocateAndAssociateEipAddress
  categories:
    - instance_manage
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: Region ID
      ja: リージョン ID
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  instanceIds:
    Label:
      en: InstanceIds
      zh-cn: Instance IDs
      ja: インスタンス ID
    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.
      ja: Elastic IP アドレスを関連付けるインスタンスの ID リスト。
    AssociationProperty: ALIYUN::ECS::Instance::InstanceId
    AssociationPropertyMetadata:
      RegionId: regionId
    Type: List
  instanceType:
    Label:
      en: InstanceType
      zh-cn: Instance type
      ja: インスタンスタイプ
    Description:
      en: The type of the cloud product instance to associate.
      zh-cn: The type of the cloud product instance to associate.
      ja: 関連付けるクラウド製品インスタンスのタイプ。
    Type: String
    AllowedValues:
      - Nat
      - SlbInstance
      - EcsInstance
      - NetworkInterface
      - HaVip
    Default: NetworkInterface
  internetChargeType:
    Label:
      en: InternetChargeType
      zh-cn: EIP billing method
      ja: EIP の課金方法
    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).'
      ja: EIP の課金方法です。有効な値: PayByBandwidth (帯域幅課金) および PayByTraffic (トラフィック課金)。
    Type: String
    AllowedValues:
      - PayByBandwidth
      - PayByTraffic
    Default: PayByBandwidth
  bandwidth:
    Label:
      en: Bandwidth
      zh-cn: EIP peak bandwidth
      ja: 帯域幅
    Description:
      en: 'The peak bandwidth of the EIP, in Mbps.'
      zh-cn: 'The peak bandwidth of the EIP, in Mbps.'
      ja: EIP の最大帯域幅 (単位: Mbps)。
    Type: Number
    Default: 5
  rateControl:
    Label:
      en: RateControl
      zh-cn: Task execution concurrency
      ja: レート制御
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 15
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: RAM role for OOS
      ja: OOS が引き受ける RAM ロール
    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.
      ja: 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: Configuration Parameters
            en: Configuration Parameters
            ja: 設定パラメーター
      - Parameters:
          - rateControl
          - OOSAssumeRole
        Label:
          default:
            zh-cn: Advanced Options
            en: Advanced Options
            ja: 詳細オプション