使用 Amazon 監控快照的區塊公開存取 EventBridge - Amazon EBS

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 Amazon 監控快照的區塊公開存取 EventBridge

Amazon EBS 會發出與快照的封鎖公開存取相關的事件。您可以使用 AWS Lambda 和 Amazon EventBridge 以程式設計方式處理事件通知。盡可能發出事件。如需詳細資訊,請參閱 Amazon EventBridge 使用者指南

系統會發出下列事件:

  • 以封鎖所有共用模式啟用快照的封鎖公開存取功能

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Block Public Access Enabled", "source": "aws.ec2", "account": "123456789012", "time": "2019-05-31T21:49:54Z", "region": "us-east-1", "detail": { "SnapshotBlockPublicAccessState": "block-all-sharing", "message": "Block Public Access was successfully enabled in 'block-all-sharing' mode" } }
  • 以封鎖新共用模式啟用快照的封鎖公開存取功能

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Block Public Access Enabled", "source": "aws.ec2", "account": "123456789012", "time": "2019-05-31T21:49:54Z", "region": "us-east-1", "detail": { "SnapshotBlockPublicAccessState": "block-new-sharing", "message": "Block Public Access was successfully enabled in 'block-new-sharing' mode" } }
  • 停用快照的封鎖公開存取功能

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Block Public Access Disabled", "source": "aws.ec2", "account": "123456789012", "time": "2019-05-31T21:49:54Z", "region": "us-east-1", "detail": { "SnapshotBlockPublicAccessState": "unblocked", "message": "Block Public Access was successfully disabled" } }