# Reposawscodecommitlist-repositoriesawscodecommitget-repository--repository-name<name>awscodecommitget-repository-triggers--repository-name<name>awscodecommitlist-branches--repository-name<name>awscodecommitlist-pull-requests--repository-name<name># Approval rulesawscodecommitlist-approval-rule-templatesawscodecommitget-approval-rule-template--approval-rule-template-name<name>awscodecommitlist-associated-approval-rule-templates-for-repository--repository-name<name># Get & Put files## Get a fileawscodecommitget-file--repository-namebackend-api--file-pathapp.py## Put a fileawscodecommitget-branch--repository-namebackend-api--branch-namemasteraws codecommit put-file --repository-name backend-api --branch-name master --file-content fileb://./app.py --file-path app.py --parent-commit-id <commit-id>
# SSH Keys & Clone repo## Get codecommit keysawsiamlist-ssh-public-keys#User keys for CodeCommitawsiamget-ssh-public-key--user-name<username>--ssh-public-key-id<id>--encodingSSH#Get public key with metadata# The previous command will give you the fingerprint of the ssh key# With the next command you can check the fingerprint of an ssh key and compare themssh-keygen-f.ssh/id_rsa-l-Emd5# Clone repogitclonessh://<SSH-KEY-ID>@git-codecommit.<REGION>.amazonaws.com/v1/repos/<repo-name>