Skip to content

Instantly share code, notes, and snippets.

@hiroakis
Created January 22, 2016 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroakis/a15dbfedd40d821356bf to your computer and use it in GitHub Desktop.
Save hiroakis/a15dbfedd40d821356bf to your computer and use it in GitHub Desktop.
IAM
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"NotAction": "iam:*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"iam:ListUsers"
],
"Resource": [
"arn:aws:iam::XXXXXXXXXXX:user/"
]
},
{
"Effect": "Allow",
"Action": [
"iam:ListVirtualMFADevices"
],
"Resource": [
"arn:aws:iam::XXXXXXXXXXX:mfa/"
]
},
{
"Effect": "Allow",
"Action": [
"iam:ChangePassword",
"iam:EnableMFADevice",
"iam:DeactivateMFADevice",
"iam:ResyncMFADevice",
"iam:ListMFADevices"
],
"Resource": [
"arn:aws:iam::XXXXXXXXXXX:user/${aws:username}"
]
},
{
"Effect": "Allow",
"Action": [
"iam:DeleteVirtualMFADevice",
"iam:CreateVirtualMFADevice"
],
"Resource": [
"arn:aws:iam::XXXXXXXXXXX:mfa/${aws:username}"
]
},
{
"Effect": "Allow",
"Action": [
"iam:GetAccountPasswordPolicy",
"iam:PassRole",
"iam:ListRoles",
"lambda:*"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment