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

CloudOps Orchestration Service:キーローテーションポリシーの一括更新

最終更新日:Jan 17, 2025

テンプレート名

ACS-KMS-BulkyUpdateRotationPolicy

今すぐ実行

テンプレートの説明

キーローテーションポリシーを更新します。

テンプレートタイプ

自動化

所有者

Alibaba Cloud

入力パラメーター

パラメーター

説明

データ型

必須

デフォルト値

制限

keyIds

キー ID。

リスト

はい

rotationInterval

自動キーローテーションが実行される間隔。

文字列

はい

regionId

リージョン ID。

文字列

いいえ

{{ ACS::RegionId }}

rateControl

レート制御設定。

JSON

いいえ

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

OOSAssumeRole

CloudOps Orchestration Service ( OOS ) によって引き受けられる RAM ロール。

文字列

いいえ

""

出力パラメーター

該当なし。

テンプレートを実行するために必要な権限ポリシー

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "kms:UpdateRotationPolicy"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

参照

ACS-KMS-BulkyUpdateRotationPolicy

テンプレートコンテンツ

FormatVersion: OOS-2019-06-01
Description:
  en: Update rotation policy
  name-en: ACS-KMS-BulkyUpdateRotationPolicy
  categories:
    - security
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  keyIds:
    Label:
      en: KeyIds
    Type: List
  rotationInterval:
    Label:
      en: RotationInterval
    Type: String
  rateControl:
    Label:
      en: RateControl
    Type: Json
    AssociationProperty: RateControl
    Default:
      Mode: Concurrency
      MaxErrors: 0
      Concurrency: 10
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: updateRotationPolicy
    Action: 'ACS::ExecuteAPI'
    Description:
      en: Update rotation policy
    Properties:
      Service: KMS
      API: UpdateRotationPolicy
      Parameters:
        RegionId: '{{ regionId }}'
        KeyId: '{{ ACS::TaskLoopItem }}'
        EnableAutomaticRotation: true
        RotationInterval: '{{ rotationInterval }}'
    Loop:
      RateControl: '{{ rateControl }}'
      Items: '{{ keyIds }}'