You are going to add Northwind solution to the source control, not CDK project.
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
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
Now all source code is stored in AWS CodeCommit, you can verify it by checking the AWS Console.