Skip to content

Commit b51aac7

Browse files
authored
Merge pull request #11 from liwadman/main
Adding "CreateServiceSpecificCredential" to IAM user management excep…
2 parents c113ca9 + db4a09e commit b51aac7

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed
Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
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+
}

0 commit comments

Comments
 (0)