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

CloudOps Orchestration Service:ACS-ESS-EnableInstanceHealthCheck

最終更新日:Jun 23, 2026

テンプレート名

ACS-ESS-EnableInstanceHealthCheck

今すぐ実行

テンプレートの説明

スケーリンググループ内の Elastic Compute Service (ECS) インスタンスのヘルスチェックを有効にします。

テンプレートタイプ

自動

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

タイプ

必須

デフォルト値

制限

scalingGroupId

スケーリンググループの ID。

String

はい

regionId

リージョン ID。

String

いいえ

{{ ACS::RegionId }}

OOSAssumeRole

CloudOps Orchestration Service (OOS) が引き受ける RAM ロール。

String

いいえ

""

出力パラメーター

なし

テンプレートの実行に必要なポリシー

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ess:DescribeScalingGroups",
                "ess:ModifyScalingGroup"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

関連ドキュメント

ACS-ESS-EnableInstanceHealthCheck

テンプレートの内容

FormatVersion: OOS-2019-06-01
Description:
  en: Enables health checks for ECS instances in the scaling group.
  zh-cn: 开启ESS伸缩组中的ECS实例的健康检查。
  ja: スケーリンググループ内の ECS インスタンスのヘルスチェックを有効にします。
  name-en: ACS-ESS-EnableInstanceHealthCheck
  name-zh-cn: 开启ESS伸缩组中的ECS实例的健康检查
  ja: ACS-ESS-EnableInstanceHealthCheck
  categories:
    - elastic_manage
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: 地域ID
      ja: リージョン ID
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  scalingGroupId:
    Label:
      en: ScalingGroupId
      zh-cn: 待修改伸缩组的ID
      ja: スケーリンググループ ID
    Type: String
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: OOS扮演的RAM角色
      ja: OOS が引き受ける RAM ロール
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: checkForScalingGroupAvalible
    Action: 'ACS::CheckFor'
    Description:
      en: Checks whether the scaling group is available.
      zh-cn: 检查伸缩组状态是否可用。
      ja: スケーリンググループが利用可能か確認します。
    Properties:
      Service: ESS
      API: DescribeScalingGroups
      Parameters:
        RegionId: '{{ regionId }}'
        ScalingGroupId: '{{ scalingGroupId }}'
      DesiredValues:
        - Active
        - Inactive
      PropertySelector: ScalingGroups.ScalingGroup[].LifecycleState
  - Name: modifyScalingGroup
    Action: 'ACS::ExecuteAPI'
    Description:
      en: Modifies the health check status of the scaling group.
      zh-cn: 修改ECS伸缩组的健康检查状态。
      ja: スケーリンググループのヘルスチェックステータスを変更します。
    Properties:
      Service: ESS
      API: ModifyScalingGroup
      Parameters:
        RegionId: '{{ regionId }}'
        ScalingGroupId: '{{ scalingGroupId }}'
        HealthCheckType: 'ECS'