Add solution to CodeCommit

You are going to add Northwind solution to the source control, not CDK project.

Using provided remote VM

Switch to the root of Northwind project (folder that contains Northwind.sln).

Add all changes:

git add .

Create initial commit with all files:

git commit -m "Initial commit"

Developer EC2 already has remote named aws configured. So you can push changes to the AWS CodeCommit by running the following command:

git push aws master

Using your own computer

Switch to the root of Northwind project (folder that contains Northwind.sln) and initialize empty git repository:

git init

Add all files:

git add .

Create initial commit with all files:

git commit -m "Initial commit"

Configure remote repository (the one you created in AWS CodeCommit):

Use code repository URL from the previous step.

git remote add origin https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/Northwind

Push changes to the AWS CodeCommit:

git push origin master

Verify that files are stored in AWS CodeCommit

Now all source code is stored in AWS CodeCommit, you can verify it by checking the AWS Console.

Code Commit