REA CodeBuild buildspec notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

AWS CodeBuild buildspec.yml trees record managed CI identity (version, phases, artifacts, env). In REA 6.7.x, treat selected phase/artifact/env labels as Evidence beside archive/package routes — complementing Jenkins/Cloud Build/Buildkite cousins without inventing APIs. Preferred rea-jenkins-jenkinsfile was swapped (near rea-jenkinsfile).

Mental model

  1. Authorize the buildspec tree (+ packaged configs you hold).
  2. Quote selected version / phases.*.commands labels / artifacts / env key names you actually see (never paste secrets).
  3. Cousins → jenkinsfile · cloudbuild-yml · buildkite-pipeline · github-actions.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_codebuild_buildspec API REA never called.

Minimal path

# authorized buildspec.yml (+ artifact you hold)
# quote selected version / phases / artifacts / env key names into case notes
# cousins → peer Jenkinsfile / cloudbuild.yml / Buildkite / Actions lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_codebuild_buildspec .

Compare

ArtifactHonest posture
CodeBuild buildspec.ymlManaged CI phase/artifact identity facts
Peerrea-jenkinsfile
Peerrea-cloudbuild-yml
Not thisrea-jenkinsfile (Jenkins pipeline)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote version, phase names (install / pre_build / build / post_build), and artifact paths — enough for most Evidence binders.
  • env.variables / Secrets Manager / Parameter Store refs often embed secrets — record key names only.
  • Keep buildspec distinct from Jenkinsfile / cloudbuild.yml in case notes.
  • Cache and secondary-sources blocks are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for aws codebuild start-build.

Scope we will not cover

  • No inventing inspect_codebuild_buildspec / automatic builds against foreign AWS accounts.
  • No credential theft from AWS keys, OIDC roles, or remote URIs.
  • No pirate redistribution of proprietary buildspec trees.
  • No crack framing via buildspec pins.
  • No cookbooks that weaken remote auth on foreign CI accounts.

Honest limits

RepoRead documents config literacy — how authorized buildspec trees relate to Evidence — not a full CodeBuild course. Prefer upstream AWS docs for phases and artifacts. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-jenkinsfile / rea-cloudbuild-yml / rea-buildkite-pipeline?

rea-jenkinsfile covers Jenkins pipelines. rea-cloudbuild-yml covers Google Cloud Build. rea-buildkite-pipeline covers Buildkite. This page zooms on AWS CodeBuild buildspec.yml identity — it does not overwrite those pages. Preferred slug rea-jenkins-jenkinsfile was swapped because rea-jenkinsfile already covers Jenkins.

Is there inspect_codebuild_buildspec in 6.7.0?

Not assumed. Quote version/phases/artifacts/env labels you actually open, then use documented package/archive lanes. Do not invent inspect_codebuild_buildspec.

Does REA call AWS APIs or steal CodeBuild credentials?

No. Local trees only. Redact AWS keys, OIDC roles, and remote URIs; do not treat REA as a CodeBuild runner. No credential theft.

How should I label Evidence vs other CI configs?

Label Evidence by the file present. Keep buildspec.yml separate from rea-jenkinsfile, rea-cloudbuild-yml, and rea-buildkite-pipeline.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources