Skip to content

Commit 83a3ffe

Browse files
authored
Merge pull request #46 from A-Hilaly/recommended-policy-arn
Scope the `iam:PassRole` in `recommened-inline-policy` to lambda service
2 parents 9efbfff + a454f95 commit 83a3ffe

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

config/iam/recommended-inline-policy

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@
66
"Action": [
77
"lambda:*",
88
"s3:Get*",
9-
"ecr:Get*",
10-
"iam:PassRole"
9+
"ecr:Get*"
1110
],
1211
"Resource": "*"
12+
},
13+
{
14+
"Action": "iam:PassRole",
15+
"Condition": {
16+
"StringEquals": {
17+
"iam:PassedToService": "lambda.amazonaws.com"
18+
}
19+
},
20+
"Effect": "Allow",
21+
"Resource": "*"
1322
}
1423
]
1524
}

0 commit comments

Comments
 (0)