Volume 9 · Chapter 7 — CI/CD, DevOps and Infrastructure as Code

The AWS Developer Tools Pipeline in Depth

Goutham Mayaluri 4 min read AWSCloudCI/CDInfrastructure as Code

7.1 Introduction

The delivery chapter named CodePipeline, CodeBuild, and CodeDeploy; the exam expects to know what each does in detail, how they compose into a pipeline, and the supporting tools (CodeCommit, CodeArtifact, CodeGuru). This chapter provides that depth so you can design a complete AWS-native CI/CD pipeline.

7.2 Source and Build: CodeCommit and CodeBuild

CodeCommitis a managed private Git repository (IAM-controlled, encrypted) - the source stage, though pipelines commonly source from GitHub/Bitbucket too.CodeBuildis the managed build service: it runs builds in ephemeral containers driven by abuildspec.ymlthat defines phases (install, pre_build, build, post_build) and artifacts, compiling code, running tests, and producing artifacts, scaling with demand and billed per build-minute. It integrates test reports and can run security scans. The exam pattern: CodeCommit (or an external repo) for source, CodeBuild for build/test driven by buildspec, producing artifacts to S3 for the next stage.

7.3 Deploy: CodeDeploy

CodeDeployautomates deployments to EC2/on-premises, ECS, and Lambda, driven by anappspecfile that defines what to deploy and lifecyclehooks(scripts at stages like BeforeInstall, AfterInstall, ApplicationStart, ValidateService) - so you can run health checks and custom logic during deployment. It supports deployment strategies (in-place vs blue-green; canary/linear/all-at- once - detailed in the deployment-strategies chapter) and automatic rollback on failure or alarm. CodeDeploy is the component that safely rolls new versions across your compute with health gating and rollback - the deployment engine of the AWS pipeline.

flowchart LR
  Src[CodeCommit / GitHub] --> CP[CodePipeline]
  CP --> Build[CodeBuild - buildspec: build + test]
  Build --> Artifact[(Artifacts in S3)]
  Artifact --> Approve{Manual approval?}
  Approve --> Deploy[CodeDeploy - appspec + hooks, rollback]
  Deploy --> Env[EC2 / ECS / Lambda]

7.4 Orchestration: CodePipeline

CodePipelineorchestrates the whole flow asstages(source, build, test, deploy) containingactions, moving artifacts between them and gating progression. It supportsmanual approvalactions (for production gates), parallel and sequential actions,cross-accountdeployments (deploy into separate prod accounts with assumed roles), and integration with third-party and custom actions. It’s event-driven (triggers on source changes) and provides the audit trail of what was built, tested, approved, and deployed. The exam expects CodePipeline as the orchestrator tying source→build→deploy with approval gates and cross-account deployment for multi-account estates.

7.5 Supporting Tools: CodeArtifact and CodeGuru

Two supporting services.CodeArtifactis a managed artifact repository for software packages (npm, Maven, PyPI, NuGet) - a private, secure package store so builds pull approved, scanned dependencies rather than directly from public registries (supply-chain security).CodeGuruuses ML for automated code review (CodeGuru Reviewer - finds bugs/security issues in pull requests) and application performance profiling (CodeGuru Profiler - finds expensive code paths in production). These strengthen quality and security in the pipeline. The exam associates CodeArtifact with private, controlled dependency management and CodeGuru with automated ML-based code review and profiling.

7.6 Banking Production Scenario

A bank’s pipeline is CodePipeline-orchestrated: source from CodeCommit, build and test in CodeBuild (buildspec running unit tests, security scans, and pulling approved packages from CodeArtifact), producing a versioned artifact. A manual approval gates production, and CodeDeploy performs a health-gated blue-green deployment to ECS with appspec hooks validating the service and automatic rollback on a CloudWatch alarm. CodePipeline deploys cross-account into the isolated production account via an assumed role, producing a full audit trail. CodeGuru Reviewer scans pull requests for bugs and security issues, and CodeGuru Profiler flags expensive code paths in production. This complete AWS-native, secure, auditable pipeline is exactly the professional-level delivery architecture the certification targets.

7.7 Chapter Revision Notes

  • CodeCommit = managed private Git; CodeBuild = managed build/test via buildspec (phases + artifacts), ephemeral, per-minute billing.
  • CodeDeploy = automated deployments to EC2/ECS/Lambda via appspec + lifecycle hooks, with strategies and automatic rollback.
  • CodePipeline = orchestrator of stages/actions with manual approvals, cross-account deployment, and audit trail; event-driven on source change.
  • CodeArtifact = private package repository (npm/Maven/PyPI/NuGet) for controlled, scanned dependencies (supply-chain security).
  • CodeGuru = ML code review (Reviewer) and performance profiling (Profiler).