5.1. In lib/cdk-msg-app-backend-stack.ts, add the following below the last import.
import * as ecr from 'aws-cdk-lib/aws-ecr';
5.2. In lib/cdk-msg-app-backend-stack.ts, add the following code inside the constructor.
const repository = new ecr.Repository(this, "workshop-api", {
repositoryName: "workshop-api"
});
5.3. Save it and make sure it builds and creates a stack.
cdk synth
5.4. Deploy the stack.
cdk deploy
5.5. Open the Amazon ECR console on Repositories https://console.aws.amazon.com/ecr/repositories, you will see your new repository.