

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

# 從 Amazon ECS 叢集中移除執行時期監控
<a name="ecs-guard-duty-remove-manual"></a>

您可以從叢集中移除執行時期監控。此操作會導致 GuardDuty 停止監控叢集中的所有資源。

**從叢集中移除執行時期監控**

1. 使用 Amazon ECS 主控台或 將叢集上的 AWS CLI `GuardDutyManaged`標籤索引鍵設定為 `false`。如需詳細資訊，請參閱[更新叢集](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-cluster-v2.html)或[透過 CLI 或 API 使用標籤](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html#tag-resources-api-sdk)。
**注意**  
鍵與值區分大小寫，且必須與字串完全相符。

   索引鍵 = `GuardDutyManaged`，值 = `false`

1. 解除安裝叢集中 EC2 容器執行個體上的 GuardDuty 安全代理程式。

   如需詳細資訊，請參閱 *GuardDuty User Guide* 中的 [Uninstalling the security agent manually](https://docs.aws.amazon.com/guardduty/latest/ug/managing-gdu-agent-ec2-manually.html#gdu-update-security-agent-ec2)。

1. 刪除每個叢集 VPC 的 GuardDuty VPC 端點。如需有關如何刪除 VPC 端點的詳細資訊，請參閱 *AWS PrivateLink User Guide* 中的 [Delete an interface endpoint](https://docs.aws.amazon.com/vpc/latest/privatelink/delete-interface-endpoint.html)。