Skip to main content
IAM Policy Map

AWSGitSyncServiceRolePolicy

ReaderService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Policy which allows AWS Code Connections to sync content from your git repository

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AWSGitSyncServiceRolePolicy
Default version
v2
Created
Last edited
Services
codeconnections, codestar-connections

Control-plane actions (2)

By access level: 2 Read.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CodeConnections1 of 381 Read; 1 restricted, 1 conditionalcodeconnections:UseConnection
CodeStar Connections1 of 381 Read; 1 restricted, 1 conditionalcodestar-connections:UseConnection
CodeConnections: 1 actions
  • codeconnections:UseConnection (Read)
CodeStar Connections: 1 actions
  • codestar-connections:UseConnection (Read)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: scoped.

Can be attached: No (service-linked role policy).

Why this tier

  • Grants only List and Read actions.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AccessGitRepos",
      "Effect": "Allow",
      "Action": [
        "codestar-connections:UseConnection",
        "codeconnections:UseConnection"
      ],
      "Resource": [
        "arn:aws:codestar-connections:*:*:connection/*",
        "arn:aws:codeconnections:*:*:connection/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    }
  ]
}

Version history

Current version v2, edited by AWS on 2024-04-26. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

This policy cannot be attached to users, groups or roles, so there are no attach snippets.

Sources

Pending editorial review. No editorial sources are listed yet.