Ensure that your AWS CodeBuild build project has S3 or Cloudwatch logs enabled.
Monitoring AWS CodeBuild projects helps maintaining the reliability, availability, and performance of the resource. It helps to easily debug multi-point failure and potential incidents.
Ensure that CodeBuild project has logging enabled.