File tree Expand file tree Collapse file tree 1 file changed +25
-21
lines changed
Privileged-access-controls Expand file tree Collapse file tree 1 file changed +25
-21
lines changed Original file line number Diff line number Diff line change 11{
2- "Version" :" 2012-10-17" ,
3- "Statement" :[
4- {
5- "Effect" :" Deny" ,
6- "Action" :[
7- " iam:CreateAccessKey" ,
8- " iam:CreateUser" ,
9- " iam:UpdateLoginProfile" ,
10- " iam:CreateLoginProfile" ,
11- " iam:DeleteLoginProfile" ,
12- " iam:UpdateAccountPasswordPolicy" ,
13- " iam:DeleteAccountPasswordPolicy"
14- ],
15- "Resource" :" *" ,
16- "Condition" :{
17- "ArnNotLike" :{
18- "aws:PrincipalARN" :" arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]"
19- }
20- }
2+ "Version" : " 2012-10-17" ,
3+ "Statement" : [
4+ {
5+ "Effect" : " Deny" ,
6+ "Action" : [
7+ " iam:CreateAccessKey" ,
8+ " iam:CreateUser" ,
9+ " iam:UpdateLoginProfile" ,
10+ " iam:CreateLoginProfile" ,
11+ " iam:DeleteLoginProfile" ,
12+ " iam:UpdateAccountPasswordPolicy" ,
13+ " iam:DeleteAccountPasswordPolicy" ,
14+ " iam:CreateServiceSpecificCredential"
15+ ],
16+ "Resource" : " *" ,
17+ "Condition" : {
18+ "ArnNotLike" : {
19+ "aws:PrincipalArn" : " arn:aws:iam::*:role/[PRIVILEGED_ROLE]"
20+ },
21+ "StringNotLike" : {
22+ "aws:PrincipalTag/IAMUserManagementException" : " true"
23+ }
2124 }
22- ]
23- }
25+ }
26+ ]
27+ }
You can’t perform that action at this time.
0 commit comments