Skip to main content

CodeCommit

Service Details

Git repositories in the cloud.

Assessment Notes

IAM Notes

The following outlines what (at the time of writing) are the more important IAM permissions for CodeCommit - it excludes anything around reading metadata.

To download the repo contents:

  • codecommit:GetBlob
  • codecommit:GetFile
  • codecommit:GitPull

To alter the contents of the repo:

  • codecommit:CreateBranch
  • codecommit:CreatePullRequest
  • codecommit:DeleteBranch
  • codecommit:DeleteCommentContent
  • codecommit:DeleteFile
  • codecommit:GitPush
  • codecommit:MergePullRequestByFastForward
  • codecommit:PostCommentForComparedCommit
  • codecommit:PostCommentForPullRequest
  • codecommit:PostCommentReply
  • codecommit:PutFile
  • codecommit:UpdateComment
  • codecommit:UpdatePullRequestDescription
  • codecommit:UpdatePullRequestStatus
  • codecommit:UpdatePullRequestTitle

To modify the repository itself:

  • codecommit:CancelUploadArchive
  • codecommit:CreateRepository
  • codecommit:DeleteRepository
  • codecommit:PutRepositoryTriggers
  • codecommit:TestRepositoryTriggers
  • codecommit:UpdateDefaultBranch
  • codecommit:UpdateRepositoryDescription
  • codecommit:UpdateRepositoryName
  • codecommit:UploadArchive

Operational Notes

Commonly deployed alongside CodePipeline, CodeBuild and CodeDeploy to build an AWS native pipeline

Exam tips