Skip to content

Instantly share code, notes, and snippets.

@phnahes
Last active June 1, 2020 00:43
Show Gist options
  • Save phnahes/da4aa1bdd4a3a579ccc9aac3cc6a734a to your computer and use it in GitHub Desktop.
Save phnahes/da4aa1bdd4a3a579ccc9aac3cc6a734a to your computer and use it in GitHub Desktop.
Deny Aws login Without MFA Present
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"*"
],
"Resource": [
"*"
],
"Effect": "Deny",
"Condition": {
"NumericGreaterThan": {
"aws:MultiFactorAuthAge": "21600"
},
"Bool": {
"aws:MultiFactorAuthPresent": "false"
}
},
"Sid": "DenyWithoutMFAPresent"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment