iam:阻止根用户的访问
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyAllForRootIfNoMFA",
"Effect": "Deny",
"Action": "*",
"Resource": "*",
"Condition": {
"BoolIfExists": {
"aws:MultiFactorAuthPresent": "false"
},
"StringLike": {
"aws:PrincipalArn": [
"arn:aws:iam::*:root"
]
}
}
}
]
}最后更新于