Create a Git repository

Any CI/CD pipeline starts with a code repository. In this workshop we use AWS CodeCommit for ease of integration, but you could use other source code integrations, like GitHub for example.

Run the following command from your terminal to create a new CodeCommit repository:

aws codecommit create-repository --repository-name sls-app

You should see the following output. Copy the value of cloneUrlHttp, you will need it later.

{
    "repositoryMetadata": {
        "accountId": "************",
        "repositoryId": "eb590975-5b7f-40d2-b7f9-6d62067b76d3",
        "repositoryName": "sls-app",
        "lastModifiedDate": 1593659596.674,
        "creationDate": 1593659596.674,
        "cloneUrlHttp": "https://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/sls-app",
        "cloneUrlSsh": "ssh://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/sls-app",
        "Arn": "arn:aws:codecommit:ap-southeast-1:************:sls-app"
    }
}