跳至内容

如何解决 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 时会出现治理偏差。附加到安全性 OU 的 SCP 可能引发偏差。托管 SCP 的标识符以 aws-guardrails 开头。

注意: 安全性 OU 以前称为核心 OU。

解决方法

重置或更新您的登录区

要解决此问题,请重置或更新您的登录区,以将发生偏差的资源恢复为已保存的 AWS Control Tower 配置。重置操作会将您的登录区恢复到清单文件中定义的最新已知配置,并根据您激活的控件重新部署正确的 SCP。有关更多信息,请参阅 Detect and resolve drift in AWS Control Tower(在 AWS Control Tower 中检测并解决偏差问题)。

(可选)确定偏差的原因

要识别发起 SCP 修改的操作或用户,请在 AWS CloudTrail 中查看事件历史记录。

搜索以下 API 事件:

  • DeletePolicy
  • AttachPolicy
  • UpdatePolicy
  • DetachPolicy
  • DisablePolicyType

注意: 要查看超过 90 天的 API 事件,请查询 CloudTrail 跟踪日志,该日志捕获 AWS Organizations 管理账户所在的美国东部(弗吉尼亚州北部)AWS 区域中的事件。有关详细信息,请参阅 Logging API calls with AWS CloudTrail for AWS Organizations(使用 AWS CloudTrail 记录 AWS Organizations 的 API 调用)。

AWS 官方已更新 8 个月前