DEV Community

Mohsen Kokabi
Mohsen Kokabi

Posted on

AWS CodeCommit

Step 1

Login to console and select CodeCommit service and create a new repository.
Image01
Give it a name and optionally a description
Image02

Step 2

Grab the HTTPS URL.
Image03

Step 3: Create a User

Login to AWS console and select IAM service.
Image04
From the left side panel select Users
Image05
and create a new User
Image06
Select Programatic access
Image07
Give him permission by attaching existing policy AWSCodeCommitFullAccess
Image09
Review everything and hit Create
Image10
Go to the Security Credentials tab
Image11
Scroll down to the HTTPS git credentials section and hit Generate credentials. Write down the username and password or download the file.
Image12

Step 4

Now you can select your working folder and add remote git to it as usual using the username and password from the last step.

dotnet new webapp -o WebAppTest
cd WebAppTest/
git init
git remote add origin https://git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/MohsenTestRepo

git add .
git commit -m"First commit"
git push origin master

Top comments (0)