Skip to content

Instantly share code, notes, and snippets.

@marknca
Created September 6, 2016 17:29
Show Gist options
  • Save marknca/a1a8418a0e482d0bbc2181f19e69e67e to your computer and use it in GitHub Desktop.
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
{
"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/*"
}
]
}
@marknca
Copy link
Author

marknca commented Sep 6, 2016

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