テンプレート名
ACS-VPC-ScheduleToUpgradeEipBandwidth は、スケジュールに基づいて Elastic IP アドレス (EIP) の帯域幅を一時的にスペックアップします
テンプレートの説明
スケジュールに従って、Elastic IP アドレス (EIP) の帯域幅を一時的にスペックアップします。
テンプレートの種類
自動化
所有者
Alibaba Cloud
入力パラメーター
パラメーター | 説明 | 種類 | 必須 | デフォルト値 | 制限 |
TimerTrigger | タイマートリガーの種類。 | Json | はい | ||
AllocationId | EIP。 | リスト | はい | ||
Bandwidth | 帯域幅 | 数値 | はい | ||
RegionId | リージョン ID。 | 文字列 | いいえ | {{ ACS::RegionId }} | |
Duration | 追加帯域幅が使用される期間。 | String | いいえ | PT1H | |
RateControl | タスク実行の同時実行率 | Json | いいえ | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | CloudOps Orchestration Service (OOS) によって引き受けられる Resource Access Management (RAM) ロール。 | 文字列 | いいえ | "" |
出力パラメーター
なし
テンプレートを実行するために必要な権限ポリシー
{
"Version": "1",
"Statement": [
{
"Action": [
"vpc:DescribeEipAddresses",
"vpc:ModifyEipAddressAttribute"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳細
詳細については、GitHub の ACS-VPC-ScheduleToUpgradeEipBandwidth をご参照ください。
テンプレートコンテンツ
FormatVersion: OOS-2019-06-01
Description:
en: Temporarily upgrades the bandwidth of an EIP on a schedule.
ja: スケジュールに基づいて EIP の帯域幅を一時的にスペックアップします。
name-en: ACS-VPC-ScheduleToUpgradeEipBandwidth
name-ja: ACS-VPC-ScheduleToUpgradeEipBandwidth
categories:
- time_trigger
Parameters:
TimerTrigger:
Type: Json
Label:
en: TimerTrigger
ja: タイマートリガー
AssociationProperty: ALIYUN::OOS::Component::TimerTrigger
AssociationPropertyMetadata:
MinuteInterval: 30
RegionId:
Type: String
Label:
en: The id of region
ja: リージョン ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
AllocationId:
Type: List
Label:
en: TargetEIPInstance
ja: ターゲット EIP インスタンス
Bandwidth:
Label:
en: Bandwidth
ja: 帯域幅
Description:
en: The target peak bandwidth for the EIP. The EIP is billed on a pay-by-bandwidth basis. Valid values: 1 to 500. Unit: Mbps.
ja: EIP のターゲットピーク帯域幅。EIP は帯域幅課金です。有効な値:1~500。単位:Mbps。
Type: Number
MinValue: 1
MaxValue: 500
Duration:
Label:
en: Duration
ja: 期間
Description:
en: The minimum duration is 1 second.
ja: 最小期間は 1 秒です。
Type: String
AssociationProperty: ALIYUN::OOS::Component::DurationExpression
Default: 'PT1H'
RateControl:
Label:
en: RateControl
ja: レート制御
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: The RAM role to be assumed by OOS
ja: OOS が偽装する RAM ロール
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: timerTrigger
Action: ACS::TimerTrigger
Description:
en: Triggers the execution at a scheduled time.
ja: スケジュールされた時刻に実行をトリガーします。
Properties:
Type:
Fn::Select:
- type
- '{{timerTrigger}}'
Expression:
Fn::Select:
- expression
- '{{timerTrigger}}'
StartDate:
Fn::Select:
- startDate
- '{{ timerTrigger }}'
EndDate:
Fn::Select:
- endDate
- '{{ timerTrigger }}'
TimeZone:
Fn::Select:
- timeZone
- '{{ timerTrigger }}'
Outputs: {}
- Name: GetEipInstance
Description:
en: Retrieves the EIP instance.
ja: EIP インスタンスを取得します。
Action: ACS::ExecuteAPI
Properties:
Service: VPC
API: DescribeEipAddresses
Parameters:
RegionId: '{{ RegionId }}'
AllocationId:
Fn::Join:
- ','
- '{{ AllocationId }}'
Headers: {}
Body: {}
Outputs: {}
- Name: UpgradeEipAddressBandwidth
Action: ACS::VPC::UpgradeEipBandwidth
Description:
en: Upgrades the bandwidth of the EIP instance.
ja: EIP インスタンスの帯域幅をスペックアップします。
Properties:
RegionId: '{{ RegionId }}'
AllocationId: '{{ ACS::TaskLoopItem }}'
Bandwidth: '{{ Bandwidth }}'
Duration: '{{ Duration }}'
Outputs: {}
Loop:
Items: '{{ GetEipInstance.EipAddresses.EipAddress[]?.AllocationId }}'
RateControl: '{{ RateControl }}'
Outputs: {}
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- TimerTrigger
Label:
default:
en: Timer Trigger Configure
ja: タイマートリガーの設定
- Parameters:
- RegionId
- AllocationId
- Bandwidth
- Duration
Label:
default:
en: Select Instance
ja: インスタンスの選択
- Parameters:
- RateControl
- OOSAssumeRole
Label:
default:
en: Control Options
ja: 制御オプション