AWS:如何查明是否有人试图挂载卷或复制 EBS 卷

AWS: How to find out whether someone is trying to mount the volume or copy the EBS volume

我为我的 EBS 卷启用了云监控,它提供了如下指标 BurstBalance、VolumeWriteOpS、VolumeQueueLengts 等

我想了解如何确定是否有人正在尝试装载卷或复制 EBS 卷。我需要与 Cloud Trail 集成吗?

mount the volume

这是从实例中完成的。我认为在 EBS 卷已附加到实例后,您无法检测到任何挂载尝试。

Would I need to integrate with Cloud Trail?

您也可以使用 CloudWatch Events,不需要试用。例如,事件可以是:

{
  "source": [
    "aws.ec2"
  ],
  "detail-type": [
    "EBS Snapshot Notification"
  ],
  "detail": {
    "event": [
      "copySnapshot"
    ]
  }
}

{
  "source": [
    "aws.ec2"
  ],
  "detail-type": [
    "EBS Volume Notification"
  ],
  "detail": {
    "event": [
      "attachVolume"
    ]
  }
}