Skip to content

Instantly share code, notes, and snippets.

@pingles
Created October 14, 2016 10:46
Show Gist options
  • Save pingles/a62c848ed0433f779e1b1d945c074047 to your computer and use it in GitHub Desktop.
Save pingles/a62c848ed0433f779e1b1d945c074047 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": ...,
"Effect": "Allow",
"Action": [
"sts:GetSessionToken",
"iam:GetUser",
"iam:ListMFADevices"
],
"Resource": [
"arn:aws:iam::*:user/${aws:username}"
]
},
{
"Sid": ...,
"Effect": "Allow",
"Action": [
"*"
],
"Condition": {
"Bool": {
"aws:MultiFactorAuthPresent": "true"
}
},
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment