Now that we have our CodeCommit permissions and credentials properly configured, let’s upload our sample application code to our repository.
Switch back to your Cloud9 environoment and open a terminal tab.
cd ~/environment/
git clone https://git-codecommit.${AWS_REGION}.amazonaws.com/v1/repos/serverless-repo
rsync -a --exclude='.git' aws-serverless-application-catalog-workshop/sam/nodejs/ serverless-repo/
cd serverless-repo/
Upload the code to the AWS CodeCommit Repository.
git add .
git commit -m "Initial Commit"
git push
If you are prompted to enter an username and password, enter the ones in the credentials we generated in the previous step.