跳至內容

如何解決 AWS Control Tower 中的「A managed SCP was attached, deleted, detached, or modified」錯誤?

1 分的閱讀內容
0

當我修改已連接至安全性組織單位 (OU) 的服務控制政策 (SCP) 時,AWS Control Tower 主控台顯示錯誤訊息。

簡短說明

您會在 AWS Control Tower 主控台看到以下錯誤訊息:

「A managed SCP was attached, deleted, detached, or modified on the OU Security (ou-xyzzxy).This action has compromised the shared accounts and their functionality.For example, the log archive and audit accounts may no longer be working because their permissions have changed.

Until you fix this problem, you cannot view or manage your AWS Control Tower landing zone.Provisioning new accounts is not recommended, because logging and auditing may not be functioning.」

當您在 AWS Control Tower 多帳戶環境中修改 SCP 時,系統就會顯示上述錯誤訊息。您可以自訂 SCP,使其符合組織需求;但是,如果修改由 AWS Control Tower 管理的 SCP,就會產生治理偏離。將 SCP 連接至安全性 OU 可能會造成偏離。受管 SCP 的識別碼均以 aws-guardrails 開頭。

注意: 安全性 OU 過去稱為核心 OU。

解決方法

重設或更新登陸區域

若要解決此問題,請重設或更新登陸區域,將發生偏離的資源還原至 AWS Control Tower 已儲存的組態。重設作業會將登陸區域還原至資訊清單檔案中定義的上一個已知組態,並依據您已啟用的控制項重新部署正確的 SCP。如需更多資訊,請參閱偵測並解決 AWS Control Tower 中的偏離問題。

(選用) 判斷偏離原因

若要找出發起 SCP 修改的動作或使用者,請在 AWS CloudTrail 中檢視事件歷史記錄。

搜尋以下 API 事件:

  • DeletePolicy
  • AttachPolicy
  • UpdatePolicy
  • DetachPolicy
  • DisablePolicyType

注意: 若要檢閱 90 天以前的 API 事件,請查詢 CloudTrail 軌跡日誌;此日誌會擷取 AWS Organizations 管理帳戶之美國東部 (維吉尼亞北部) AWS 區域內的事件。如需更多資訊,請參閱使用 AWS CloudTrail 記錄 AWS Organizations 的 API 呼叫。

AWS 官方已更新 8 個月前