Last active
June 1, 2020 00:43
-
-
Save phnahes/da4aa1bdd4a3a579ccc9aac3cc6a734a to your computer and use it in GitHub Desktop.
Deny Aws login Without MFA Present
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": [ | |
{ | |
"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