管理访问密钥所需的权限 - AWS Identity and Access Management

管理访问密钥所需的权限

注意

iam:TagUser 是用于添加和编辑访问密钥描述的可选权限。有关更多信息,请参阅 标记 IAM 用户

要为您自己的 IAM 用户创建访问密钥,您必须具有以下策略中的权限:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "CreateOwnAccessKeys", "Effect": "Allow", "Action": [ "iam:CreateAccessKey", "iam:GetUser", "iam:ListAccessKeys", "iam:TagUser" ], "Resource": "arn:aws:iam::*:user/${aws:username}" } ] }

要为您自己的 IAM 用户更新访问密钥,您必须具有以下策略中的权限:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "ManageOwnAccessKeys", "Effect": "Allow", "Action": [ "iam:CreateAccessKey", "iam:DeleteAccessKey", "iam:GetAccessKeyLastUsed", "iam:GetUser", "iam:ListAccessKeys", "iam:UpdateAccessKey", "iam:TagUser" ], "Resource": "arn:aws:iam::*:user/${aws:username}" } ] }