Explain it simpler
CodePipeline is like a conveyor belt for software. Each time someone changes the code, the belt moves it through a series of stations: fetch the code, build it, test it, wait for a person to approve, and release it. Each station is a stage, and the jobs at a station are actions. Files are passed along the belt in labeled boxes called artifacts. CodeBuild is the worker at the build station. It follows a written checklist called buildspec.yml, which says what to install, what to test, what to build and which finished files to put in the box. Secrets are fetched from a safe at build time instead of being written on the checklist. It is like an assembly line where a supervisor must sign off before products ship.
On Wednesday morning at Silverline Transit, Kenji is reviewing why last night's release of the trip-planner service broke production. The developer who deployed it ran the build on his laptop, skipped the unit tests to save time and uploaded a package that still contained a hardcoded test database password. Nobody reviewed staging first. The engineering manager wants a pipeline where every commit is built and tested the same way, secrets never appear in build files, the same package moves from staging to production, and a human signs off before customers are affected. Kenji has CodePipeline and CodeBuild available. How should the stages, actions and build file fit together?
Continuous integration and continuous delivery (CI/CD) automate the path from a code change to a running release, so every change is built, tested and deployed the same way. On AWS, AWS CodePipeline orchestrates the overall flow, and AWS CodeBuild does the work of compiling, testing and packaging. The Developer Associate exam tests how pipelines are structured, how files move between steps, how manual approvals work, and what goes in a CodeBuild buildspec file.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.