>./ Alex Tech Blog / Using AWS Code Commit

Using AWS Code Commit

#aws #codecommit

Making sure the AWS CLI is proper installed in the computer

1
$ aws sts get-caller-identity

It should show your account information

1
2
3
4
5
{
    "Account": "123456789012",
    "UserId": "AKIAIOSFODNN7EXAMPLE",
    "Arn": "arn:aws:iam::123456789012:user/Alice"
}

Ensure CodeCommit is installed

1
$ aws codecommit help

Setting up your CodeCommit repository

Create CodeCommit repository

1
$ aws codecommit create-repository --repository-name <repository name>

Initialize a new git repository

1
$ git init

Add your CodeCommit repository as a remote

1
$ git remote add origin codecommit://<repository name>

After all the configuration is done you can run the common Git commands like Push the code to your new CodeCommit repository

1
$ git push -u origin master

#aws #cheat sheet #codecommit #esri #github #honeycode #javascript #jupyter #linux #machine learning #pandas #php #python #salesforce #ssh