Skip to content

Commit 22bdc66

Browse files
committed
revamp codecommit
1 parent 6d809a4 commit 22bdc66

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

src/content/docs/aws/services/codecommit.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
22
title: "CodeCommit"
3-
linkTitle: "CodeCommit"
43
description: Get started with CodeCommit on LocalStack
54
tags: ["Base"]
65
persistence: supported
76
---
87

9-
{{< callout "note" >}}
8+
:::danger
109
AWS has discontinued new feature development for CodeCommit effective [25 July 2024](https://aws.amazon.com/blogs/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider/).
1110
However, LocalStack will continue making parity improvements.
12-
{{< /callout >}}
11+
:::
1312

1413
## Introduction
1514

@@ -19,7 +18,7 @@ You can also use standard Git commands or CodeCommit APIs (using AWS CLI or SDKs
1918
CodeCommit also uses identity-based policies, which can be attached to IAM users, groups, and roles, ensuring secure and granular access control.
2019

2120
LocalStack allows you to use the CodeCommit APIs in your local environment to create new repositories, push your commits, and manage the repositories.
22-
The supported APIs are available on our [API coverage page]({{< ref "coverage_codecommit" >}}), which provides information on the extent of CodeCommit's integration with LocalStack.
21+
The supported APIs are available on our [API coverage page](), which provides information on the extent of CodeCommit's integration with LocalStack.
2322

2423
## Getting started
2524

@@ -35,12 +34,12 @@ You need to specify the repository name, repository description, and tags.
3534

3635
Run the following command to create a new repository named `localstack-repo`:
3736

38-
{{< command >}}
37+
```bash
3938
$ awslocal codecommit create-repository \
4039
--repository-name localstack-repo \
4140
--repository-description "A demo repository to showcase LocalStack's CodeCommit" \
4241
--tags Team=LocalStack
43-
{{< /command >}}
42+
```
4443

4544
If successful, the command will return the following output:
4645

@@ -67,9 +66,9 @@ The repository URL is the `cloneUrlHttp` value returned by the `CreateRepository
6766

6867
Run the following command to clone the repository to a local directory named `localstack-repo`:
6968

70-
{{< command >}}
71-
$ git clone git://localhost:4510/localstack-repo
72-
{{< /command >}}
69+
```bash
70+
git clone git://localhost:4510/localstack-repo
71+
```
7372

7473
You will notice that the repository is empty.
7574
This is because we have not pushed any commits to the repository yet.
@@ -83,11 +82,11 @@ Then, you can use [`git commit`](https://git-scm.com/docs/git-commit) to commit
8382

8483
Run the following command to push the file to the repository:
8584

86-
{{< command >}}
87-
$ git add README.md
88-
$ git commit -m "Add README.md"
89-
$ git push
90-
{{< /command >}}
85+
```bash
86+
git add README.md
87+
git commit -m "Add README.md"
88+
git push
89+
```
9190

9291
If successful, this command returns output similar to the following:
9392

@@ -102,7 +101,7 @@ To git://localhost:4510/localstack-repo
102101
The LocalStack Web Application provides a Resource Browser for managing CodeCommit repositories.
103102
You can access the Resource Browser by opening the LocalStack Web Application in your browser, navigating to the **Resource Browser** section, and then clicking on **CodeCommit** under the **Developer Tools** section.
104103

105-
<img src="codecommit-resource-browser.png" alt="CodeCommit Resource Browser" title="CodeCommit Resource Browser" width="900" />
104+
![CodeCommit Resource Browser](/images/aws/codecommit-resource-browser.png)
106105

107106
The Resource Browser allows you to perform the following actions:
108107

0 commit comments

Comments
 (0)