CloudConsole

CodeBuild: builds, phases, logs and retries

See every CodeBuild project and its builds, why a build failed and in which phase, read the log, and start, retry or stop builds.

Open Services → CodeBuild. Each project shows its latest build. A project's screen lists its recent builds with status, commit, duration and who started them (a pipeline, a webhook or a person), Builds, Failed builds and Duration charts with Create alarm, its settings and tags.

CodeBuild build infra-synth #57 failed in the Install phase on npm ci, with Retry build and Build log
The phase that failed, and why

A build

  • Every phase with its duration, and the phase that failed with CodeBuild's message (for example COMMAND_EXECUTION_ERROR: Error while executing command: npm ci).
  • Build log opens the CloudWatch Logs stream in the app's log viewer; an S3 log opens in the browser.
  • The source version and resolved commit, and a link to the pipeline that started it.

Changes (Pro)

  • Start build, optionally with another branch, tag or commit.
  • Retry build: the same source version and settings. For a build a pipeline started, retrying the pipeline stage carries the release on; retrying the build alone doesn't.
  • Stop build (typed confirm).

Home shows a card when a project's latest build failed in the last 24 hours, with Retry; builds a pipeline started show on that pipeline's card instead. Builds also appear in What changed? on an alarm.

Permissions

WhatIAM actionsIn ReadOnlyAccess / ViewOnlyAccess
Projectscodebuild:ListProjects, codebuild:BatchGetProjectsYes / List only (add BatchGetProjects)
Builds, Home and What changed?codebuild:ListBuildsForProject, codebuild:ListBuilds, codebuild:BatchGetBuildsYes / List only (add BatchGetBuilds)
Build loglogs:GetLogEventsYes / No (add it)
Chartscloudwatch:GetMetricDataYes / No (add it)
Start, Retry, Stopcodebuild:StartBuild, codebuild:RetryBuild, codebuild:StopBuildNo / No
Still stuck?

Email [email protected] with what you tried and any message the app showed. Don’t send access keys or secrets. We reply within two working days.