需要在已注册账户的AWS账户中启用AWS Config服务。在AWS控制塔管理账户中为AWS Config服务启用Cross-account access。以下是设置Cross-account access的代码示例:
aws configservice put-aggregation-authorization --authorized-account-id --authorized-aws-region --tags
其中,是Guardrails Compliance Aggregator账户的AWS账户ID,是已注册账户的AWS账户所在地区,是可选的标记列表。