Skip to content

Commit d7a3ecc

Browse files
committed
updated mfa
1 parent 49ae221 commit d7a3ecc

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

terraform/aws-custom-policies/enforce-mfa-for-users-policy.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@
2020
"aws:MultiFactorAuthPresent": "false"
2121
}
2222
}
23-
}
23+
},
24+
{
25+
"Sid": "AllowManageOwnVirtualMFADevice",
26+
"Effect": "Allow",
27+
"Action": [
28+
"iam:CreateVirtualMFADevice"
29+
],
30+
"Resource": "arn:aws:iam::*:mfa/*"
31+
},
32+
{
33+
"Sid": "AllowManageOwnUserMFA",
34+
"Effect": "Allow",
35+
"Action": [
36+
"iam:DeactivateMFADevice",
37+
"iam:EnableMFADevice",
38+
"iam:ListMFADevices",
39+
"iam:ResyncMFADevice"
40+
],
41+
"Resource": "arn:aws:iam::*:user/${aws:username}"
42+
}
2443
]
2544
}

0 commit comments

Comments
 (0)