Inventory イベントの EventBridge モニタリングについて - AWS Systems Manager

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

Inventory イベントの EventBridge モニタリングについて

Amazon EventBridge でルールを設定して、AWS Systems Manager Inventory のリソース状態の変更に応じてイベントを作成できます。EventBridge では、Inventory の次の状態の変更に関するイベントがサポートされます。すべてのイベントは、ベストエフォートベースで送信されます。

特定のインスタンスのカスタムインベントリタイプの削除: このイベントをモニタリングするようにルールが設定されている場合、EventBridge は、特定のマネージドのカスタムインベントリタイプが削除されたときにイベントを作成します。EventBridge は、カスタムインベントリタイプごとに 1 ノードあたり 1 つのイベントを送信します。イベントパターンの例を次に示します。

{ "timestampMillis": 1610042981103, "source": "SSM", "account": "123456789012", "type": "INVENTORY_RESOURCE_STATE_CHANGE", "startTime": "Jan 7, 2021 6:09:41 PM", "resources": [ { "arn": "arn:aws:ssm:us-east-1:123456789012:managed-instance/i-12345678" } ], "body": { "action-status": "succeeded", "action": "delete", "resource-type": "managed-instance", "resource-id": "i-12345678", "action-reason": "", "type-name": "Custom:MyCustomInventoryType" } }

すべてのインスタンスのカスタムインベントリタイプの削除イベント: このイベントをモニタリングするようにルールが設定されている場合、EventBridge は、すべてのマネージドノードのカスタムインベントリタイプが削除されたときにイベントを作成します。イベントパターンの例を次に示します。

{ "timestampMillis": 1610042904712, "source": "SSM", "account": "123456789012", "type": "INVENTORY_RESOURCE_STATE_CHANGE", "startTime": "Jan 7, 2021 6:08:24 PM", "resources": [ ], "body": { "action-status": "succeeded", "action": "delete-summary", "resource-type": "managed-instance", "resource-id": "", "action-reason": "The delete for type name Custom:SomeCustomInventoryType was completed. The deletion summary is: {\"totalCount\":1,\"remainingCount\":0,\"summaryItems\":[{\"version\":\"1.1\",\"count\":1,\"remainingCount\":0}]}", "type-name": "Custom:MyCustomInventoryType" } }

古いスキーマバージョンイベントで PutInventory 呼び出し: このイベントをモニタリングするようにルールが設定されている場合、EventBridge は、現在のスキーマよりも低いスキーマバージョンを使用する PutInventory 呼び出しが行われたときにイベントを作成します。このイベントは、すべてのインベントリタイプに適用されます。イベントパターンの例を次に示します。

{ "timestampMillis": 1610042629548, "source": "SSM", "account": "123456789012", "type": "INVENTORY_RESOURCE_STATE_CHANGE", "startTime": "Jan 7, 2021 6:03:49 PM", "resources": [ { "arn": "arn:aws:ssm:us-east-1:123456789012:managed-instance/i-12345678" } ], "body": { "action-status": "failed", "action": "put", "resource-type": "managed-instance", "resource-id": "i-01f017c1b2efbe2bc", "action-reason": "The inventory item with type name Custom:MyCustomInventoryType was sent with a disabled schema verison 1.0. You must send a version greater than 1.0", "type-name": "Custom:MyCustomInventoryType" } }

このようなイベントをモニタリングするための EventBridge の設定方法については、「Systems Manager イベント用の EventBridge を設定する」を参照してください。