Created
September 6, 2016 17:29
-
-
Save marknca/a1a8418a0e482d0bbc2181f19e69e67e to your computer and use it in GitHub Desktop.
Allow an IAM AWS user to manage other AWS IAM user's access/secret keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListUsers", | |
"iam:CreateAccessKey", | |
"iam:DeleteAccessKey", | |
"iam:GetAccessKeyLastUsed", | |
"iam:ListAccessKeys", | |
"iam:UpdateAccessKey" | |
], | |
"Resource": "arn:aws:iam::*:user/*" | |
} | |
] | |
} |
Remember--as with any IAM policy--run it through the simulator and then your own set of tests to make sure it does what you want and only what you want.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll only need
iam:GetAccessKeyLastUsed
if the user/role with the policy assigned is also doing an audit function.