You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/codecommit.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
1
---
2
2
title: "CodeCommit"
3
-
linkTitle: "CodeCommit"
4
3
description: Get started with CodeCommit on LocalStack
5
4
tags: ["Base"]
6
5
persistence: supported
7
6
---
8
7
9
-
{{< callout "note" >}}
8
+
:::danger
10
9
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/).
11
10
However, LocalStack will continue making parity improvements.
12
-
{{< /callout >}}
11
+
:::
13
12
14
13
## Introduction
15
14
@@ -19,7 +18,7 @@ You can also use standard Git commands or CodeCommit APIs (using AWS CLI or SDKs
19
18
CodeCommit also uses identity-based policies, which can be attached to IAM users, groups, and roles, ensuring secure and granular access control.
20
19
21
20
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.
23
22
24
23
## Getting started
25
24
@@ -35,12 +34,12 @@ You need to specify the repository name, repository description, and tags.
35
34
36
35
Run the following command to create a new repository named `localstack-repo`:
37
36
38
-
{{< command >}}
37
+
```bash
39
38
$ awslocal codecommit create-repository \
40
39
--repository-name localstack-repo \
41
40
--repository-description "A demo repository to showcase LocalStack's CodeCommit" \
42
41
--tags Team=LocalStack
43
-
{{< /command >}}
42
+
```
44
43
45
44
If successful, the command will return the following output:
46
45
@@ -67,9 +66,9 @@ The repository URL is the `cloneUrlHttp` value returned by the `CreateRepository
67
66
68
67
Run the following command to clone the repository to a local directory named `localstack-repo`:
69
68
70
-
{{< command >}}
71
-
$ git clone git://localhost:4510/localstack-repo
72
-
{{< /command >}}
69
+
```bash
70
+
git clone git://localhost:4510/localstack-repo
71
+
```
73
72
74
73
You will notice that the repository is empty.
75
74
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
83
82
84
83
Run the following command to push the file to the repository:
85
84
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
+
```
91
90
92
91
If successful, this command returns output similar to the following:
93
92
@@ -102,7 +101,7 @@ To git://localhost:4510/localstack-repo
102
101
The LocalStack Web Application provides a Resource Browser for managing CodeCommit repositories.
103
102
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.
0 commit comments