Create CodeCommit repository

We will need code repository for storing Trip Management Monolith Application source code. You can use any CodePipeline source action supported source control system. For this workshop, we will use AWS CodeCommit.

Create a CodeCommit repository

  1. Open the CodeCommit console home.

  2. In the region selector, choose the default region.

  3. On the Repositories page, choose Create repository.

  4. On the Create repository page, in Repository name, enter a name for the repository tripmgmtdemo

    Note : Repository names are case sensitive. The name must be unique in the AWS Region for your AWS account.

  5. (Optional) In Description, enter a description for the repository. This can help you and other users identify the purpose of the repository.

  6. (Optional) Select Enable Amazon CodeGuru Reviewer for Java* if this repository will contain Java code, and you want CodeGuru Reviewer to analyze that Java code. CodeGuru Reviewer uses multiple machine learning models to find Java code defects and to automatically suggest improvements and fixes in pull requests. For more information, see the Amazon CodeGuru Reviewer User Guide.

    CodeCommit CodeGuru Option

  7. Choose Create.

  8. Configure access to CodeCommit Repository from your local git client, make sure you have downloaded HTTPS Git credentials for AWS CodeCommit from IAM console for your respective IAM User. If you are using Cloud9 IDE, you can skip this step.

    CodeCommit IAM Credentials

  9. Add remote origin to project CodeCommit Git Repository and push Trip Management Monolith Application code.

    # Setup your Git Identity if not already done so
    git config --global user.name "<<Your Name>>"
    git config --global user.email <<Your email id>>
    git remote add origin <<HTTPS CodeCommit Repo URL>>
    
    git add .
    git commit -m "Added support files"
    git push origin master
    

*Note: Amazon CodeGuru Reviewer option only available in regions where Amazon CodeGuru is available, check AWS Region Table for more details.