The current AWS CodeBuild project is deleted and then recreated to reset the build number back to one (1). This does not delete logs saved in CloudWatch for previous builds.
Delete the current AWS CodeBuild project:
aws codebuild delete-project --region us-east-2 --name <comanage-registry|comanage-match>
Create a new AWS CodeBuild project using the comanage-registry JSON template or comanage-match JSON template. You must edit the template to add current token values for authenticating to Docker Hub and GitHub:
aws codebuild create-project --region us-east-2 --cli-input-json file://<comanage-registry|comanage-match>.build.json
Start the build:
aws codebuild start-build --region us-east-2 --project-name <comanage-registry|comanage-match>