IAM:基于用户路径访问策略模拟器控制台
此示例说明了如何创建基于身份的策略以仅允许具有路径 Department/Development
的用户使用策略模拟器控制台。此策略授予有计划地通过 Amazon API 或 Amazon CLI 完成此操作的必要权限。要使用此策略,请将示例策略中的斜体占位符文本
替换为您自己的信息。然后,按照创建策略或编辑策略中的说明操作。
您可以在以下位置访问 IAM policy simulator:https://policysim.aws.amazon.com/
{ "Version": "2012-10-17", "Statement": [ { "Action": [ "iam:GetPolicy", "iam:GetUserPolicy" ], "Effect": "Allow", "Resource": "*" }, { "Action": [ "iam:GetUser", "iam:ListAttachedUserPolicies", "iam:ListGroupsForUser", "iam:ListUserPolicies", "iam:ListUsers" ], "Effect": "Allow", "Resource": "arn:aws:iam::*:user/
Department/Development
/*" } ] }