"Releasing means someone runs the scripts." Not with a pipeline. Manual releases depend on a tired person remembering every step in the right order, and when something breaks, nobody can say exactly which commit went live. AWS CodePipeline turns the release into a repeatable workflow: every change flows through the same stages, in the same order, and every run is recorded.
Stages, actions and artifacts
A pipeline is a series of stages. A typical one looks like this:
- Source: a commit to GitHub, GitLab, Bitbucket, AWS CodeCommit or an S3 object starts the run.
- Build and test: AWS CodeBuild compiles the code and runs the tests.
- Deploy: CodeDeploy, CloudFormation, ECS, Elastic Beanstalk or S3 put the release in place.
Each stage holds actions of a few types: source, build, test, deploy, approval and invoke. Actions inside a stage can run in sequence or in parallel (for example, unit tests and a security scan at the same time). They pass files to each other as artifacts through an S3 artifact bucket, so the deploy stage ships exactly what the build stage produced.
Triggers can filter on branches, Git tags or file paths, so a change to the docs folder does not have to redeploy production.
A note on CodeCommit: AWS closed it to new customers in July 2024, then returned it to full general availability in November 2025. It is a valid source again, alongside GitHub and the others.
Guarding production
- Manual approval: an approval action pauses the pipeline until a named person approves, so someone signs off on exactly the build that goes live.
- Stage conditions: conditions act as gates on a stage. An entry condition can block a deploy outside a time window; an on-success condition can check CloudWatch alarms after a deploy and roll the stage back to the last successful execution if an alarm fires.
- Stage rollback: a failed stage can roll back, automatically or by hand, to a previous successful execution.
A common mistake is one pipeline straight from commit to production with no tests in between. Add at least a test stage and a staging environment; the cheapest bug is the one the pipeline stops.
How runs behave
A stage processes one execution at a time. By default (SUPERSEDED mode), a newer run can overtake an older one that is waiting, so production gets the latest change. QUEUED mode processes runs in order, and PARALLEL mode lets them run independently.
Where AI fits
If your product includes a model or a prompt, treat it like code and evaluate it before release. Add a stage with a CodeBuild action that starts an Amazon Bedrock evaluation job on a fixed set of test prompts. Bedrock Evaluations can score responses with built-in metrics or with an LLM as a judge. The script compares the scores with the last release and fails the action if quality drops, which stops the pipeline before users ever see the regression. The gate logic is yours to write; Bedrock provides the evaluation, CodePipeline provides the stop.
Quick recap
- Same stages, every release: source, build and test, deploy, recorded run by run.
- Approvals and gates guard production; alarms can roll a stage back.
- Evaluate models and prompts in their own stage before they ship.