# CodeCommit

{% hint style="info" %}
CodeCommit은 2024년 7월 25일부터 기존에 등록한 고객에게만 지원되는 서비스입니다.
{% endhint %}

codecommit은 AWS에서 생성한 리포지터리를 git cli를 통해 리포지터리를 관리할 수 있는 서비스입니다.

## Abuse

<pre class="language-bash"><code class="lang-bash"><strong># ssh 비밀키가 있거나 aws 자격증명이 있을 때 리포지터리 복제
</strong>git clone https://git-codecommit.'&#x3C;region>'.amazonaws.com/v1/repos/'&#x3C;repository-name>'
git clone ssh://git-codecommit.'&#x3C;region>'.amazonaws.com/v1/repos/'&#x3C;repository-name>'

<strong># 리포지터리 열거 (codecommit:ListRepositories 권한 필요)
</strong>aws codecommit list-repositories

<strong># 특정 리포지터리의 정보 열거 (codecommit:GetRepository 권한 필요)
</strong>aws codecommit get-repository --repository-name '&#x3C;repository-name>'

<strong># 특정 리포지터리의 브랜치 목록 열거 (codecommit:ListBranches 권한 필요)
</strong>aws codecommit list-branches --repository-name '&#x3C;repository-name>'

<strong># 특정 브랜치 정보 열거 (codecommit:GetBranch 권한 필요)
</strong>aws codecommit get-branch --repository-name '&#x3C;repository-name>' --branch-name '&#x3C;branch-name>'
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/cloud/aws/undefined-1/codecommit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
