Create a CodeCommit repository

9.1. In lib/cdk-msg-app-backend-stack.ts, add the following below the last import.

import * as codecommit from 'aws-cdk-lib/aws-codecommit';

9.2. In lib/cdk-msg-app-backend-stack.ts, add the following code inside the constructor.

    const code = new codecommit.Repository(this, 'Repository' ,{
      repositoryName: 'msg-app-backend',
      description: 'Node.js backend.', // optional property
    });

9.3. Save it and make sure it builds and creates a stack.

cdk synth

9.4. Deploy the stack.

cdk deploy