Complete a 3 Question Survey and Earn a re:Post Badge
Help improve AWS Support Official channel in re:Post and share your experience - complete a quick three-question survey to earn a re:Post badge!
如何解决 AWS KMS 密钥政策错误“Policy contains a statement with one or more invalid principals”?
1 分钟阅读
0
我尝试修改我的 AWS Key Management Service(AWS KMS)密钥政策。但是,我在 AWS 管理控制台中收到了以下类似错误:“PutKeyPolicy request failed MalformedPolicyDocumentException - Policy contains a statement with one or more invalid principals”。
简短描述
当指定的密钥政策在语法或语义上不正确时,PutKeyPolicy AWS KMS API 调用请求会失败。AWS KMS 密钥政策不包含 ARN。相反,密钥政策包含一个具有类似于 AIDACKCEVSQ6C2EXAMPLE 的唯一 ID 的主体。