CodeCommit
- AWS service similar to github
- By default encrypted at rest
Permissions of codecommit,
codecommit:*
: Allow all the actionscodecommit:CreateBranch
: Allow to create branchescodecommit:DeleteBranch
: Allow to delete branchescodecommit:CreateRepository
: Allow to create repositorycodecommit:DeleteRepository
: Allow to delete repository
To give access of codecommit to other developers, we can dod any of the followings
- Create git credentials with the AWS Credential profile (to take the access key credentials)
- AWS CodeCommit supports, Access Keys, SSH and Https git credentials
- Generate a new SSH keys and associate public SSH keys to the IAM user
- Generate HTTPS git credentials and specify them in git credential manager
- For developer with another account,
- Create cross account role (AWS STS, AssumeRole API)
- Give repository permission to that role
- Provide the role arn to the developer