Skip to content

Commit 22f3b36

Browse files
committed
adding iam services admin policy to update passwords and create access keys
1 parent 9db8a89 commit 22f3b36

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

terraform/aws-custom-policies/level-4-iam-services-admin-policy.json

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@
22
"Version": "2012-10-17",
33
"Statement": [
44
{
5-
"Sid": "",
6-
"Effect": "",
5+
"Effect": "Allow",
76
"Action": [
8-
"",
9-
"",
10-
"",
11-
""
7+
"iam:CreateAccessKey"
128
],
13-
"Resource": ""
9+
"Resource": "arn:aws:iam::*:user/*"
1410
},
1511
{
16-
"Sid": "",
17-
"Effect": "",
12+
"Effect": "Allow",
1813
"Action": [
19-
"",
20-
"",
21-
"",
22-
""
14+
"iam:UpdateLoginProfile"
2315
],
24-
"Resource": ""
16+
"Resource": "arn:aws:iam::*:user/*",
17+
"Condition": {
18+
"StringEquals": {
19+
"iam:ResourceTag/Access Level": ["1", "2"]
20+
}
21+
}
2522
}
2623
]
27-
}
24+
}

0 commit comments

Comments
 (0)