AmazonCodeGuruReviewerServiceRolePolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:27 PM UTC
Version
v4
Total Versions
4
Created
Nov 27, 2020
Actions
14
Risk
no risk signalRead from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
IAM Access Analyzer (1)
- Suggestion / REDUNDANT_RESOURCE
The 2 resource ARN(s) are redundant because they reference the same resource. Review the use of wildcards (*), or remove the resource arn:aws:s3:::codeguru-reviewer-*/* to remove the redundancy. AWS docs
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AccessCodeGuruReviewerEnabledRepositories",
"Effect": "Allow",
"Action": [
"codecommit:GetRepository",
"codecommit:GetBranch",
"codecommit:DescribePullRequestEvents",
"codecommit:GetCommentsForPullRequest",
"codecommit:GetDifferences",
"codecommit:GetPullRequest",
"codecommit:ListPullRequests",
"codecommit:PostCommentForPullRequest",
"codecommit:GitPull",
"codecommit:UntagResource"
],
"Resource": "*",
"Condition": {
"StringLike": {
"aws:ResourceTag/codeguru-reviewer": "enabled"
}
}
},
{
"Sid": "AccessCodeGuruReviewerEnabledConnections",
"Effect": "Allow",
"Action": [
"codestar-connections:UseConnection"
],
"Resource": "*",
"Condition": {
"ForAllValues:StringEquals": {
"codestar-connections:ProviderAction": [
"ListBranches",
"GetBranch",
"ListRepositories",
"ListOwners",
"ListPullRequests",
"GetPullRequest",
"ListPullRequestComments",
"ListPullRequestCommits",
"ListCommitFiles",
"ListBranchCommits",
"CreatePullRequestDiffComment",
"GitPull"
]
},
"Null": {
"aws:ResourceTag/codeguru-reviewer": "false"
}
}
},
{
"Sid": "CloudWatchEventsResourceCleanup",
"Effect": "Allow",
"Action": [
"events:DeleteRule",
"events:RemoveTargets"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"events:ManagedBy": "codeguru-reviewer.amazonaws.com"
}
}
},
{
"Sid": "AllowGuruS3GetObject",
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::codeguru-reviewer-*",
"arn:aws:s3:::codeguru-reviewer-*/*"
]
}
]
},
"VersionId": "v4",
"IsDefaultVersion": true,
"CreateDate": "2020-11-27T15:09:46+00:00"
}
}Version History (7 recorded)
Raw historyAmazonCodeGuruReviewerServiceRolePolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
d76acadUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 27, 2020
3dda84bUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Jun 22, 2020
69135c9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 9, 2020
195011dUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Dec 3, 2019
76149b4