Developer Tools and DevOps Services
Overview
Software teams need a way to store code, build it, test it and deploy it safely. AWS offers developer tools that cover each step, often described as a CI/CD pipeline (continuous integration and continuous delivery).
Think of a car factory line. Source code is the raw material (CodeCommit or GitHub), CodeBuild is the assembly station, CodeArtifact is the parts warehouse, CodeDeploy delivers the finished car to the showroom, and CodePipeline is the conveyor belt linking all stations. X-Ray is the inspector tracing a defect back to the station that caused it.
The exam only asks you to recognise each tool and match it to its job.
Key Concepts
- AWS CodeCommit is a managed Git repository service; note that AWS closed it to new customers in 2024, though it remains in the exam guide.
- AWS CodeBuild compiles source code, runs tests and produces deployable artifacts with no build servers to manage.
- AWS CodeDeploy automates deployments to EC2, on-premises servers, Lambda and ECS.
- AWS CodePipeline orchestrates the stages (source, build, test, deploy) of a release process.
- AWS CodeArtifact is a managed artifact repository for packages such as npm, PyPI, Maven and NuGet.
- AWS X-Ray traces requests across distributed applications to find bottlenecks and errors.
- AWS AppConfig (part of Systems Manager) deploys application configuration and feature flags safely.
- AWS Cloud9 (cloud IDE, closed to new customers in 2024) and AWS CloudShell (browser-based shell) provide development environments; AWS CodeStar (project dashboard) was discontinued in 2024.
Detailed Notes
The CI/CD pipeline
| Stage | Purpose | AWS service |
|---|---|---|
| Source | Store and version code | CodeCommit (or GitHub, Bitbucket via CodeConnections) |
| Build and test | Compile, run unit tests, package | CodeBuild |
| Artifacts | Store libraries and dependencies | CodeArtifact |
| Deploy | Release to servers, containers, functions | CodeDeploy |
| Orchestrate | Link and automate all stages | CodePipeline |
| Observe | Trace and debug running applications | X-Ray, CloudWatch |
Tool by tool
| Tool | Key points |
|---|---|
| CodeBuild | Pay per build minute; runs in containers; reads a buildspec.yml file |
| CodeDeploy | Supports in-place and blue/green deployments; uses appspec files; can roll back automatically |
| CodePipeline | Triggers on code change; integrates with approvals and third-party tools |
| CodeArtifact | Proxies public repositories and keeps private packages secure |
| X-Ray | Generates a service map and traces of individual requests |
| AppConfig | Gradual config rollout with validators and automatic rollback |
| CloudShell | Browser shell already authenticated with your console credentials |
# buildspec.yml for CodeBuild
version: 0.2
phases:
install:
commands:
- npm ci
build:
commands:
- npm test
- npm run build
artifacts:
files:
- "dist/**/*"
Deployment strategies
| Strategy | Description | Risk |
|---|---|---|
| In-place | Update existing instances | Downtime or partial failure |
| Blue/green | Deploy to a parallel environment then switch traffic | Low; instant rollback |
| Canary/linear | Shift traffic gradually | Low; limits blast radius |
Observability with X-Ray
When a customer request passes through API Gateway, Lambda and DynamoDB, X-Ray records a trace with timing at each hop. Engineers can see that 80% of latency is in one downstream call and fix it, instead of guessing.
Legacy and changed services
Because the exam guide still lists some services AWS has since retired for new customers, know their purpose even though you should plan alternatives in real projects.
| Service | Status (2025) | Alternative |
|---|---|---|
| CodeCommit | Closed to new customers (July 2024) | GitHub, GitLab or Bitbucket with CodePipeline |
| Cloud9 | Closed to new customers (2024) | CloudShell, local IDE, VS Code remote |
| CodeStar | Discontinued (July 2024) | CodeCatalyst or direct CodePipeline setup |
Access methods summary
Developers reach AWS through the console, CLI, SDKs (Python Boto3, JavaScript, Java and more) and CloudShell. All sign requests with IAM credentials, so permissions are controlled in one place.
Real World Example
A web agency pushes code to a Git repository. CodePipeline detects the commit, runs CodeBuild to execute tests, pulls private libraries from CodeArtifact, and calls CodeDeploy to roll out the new version using blue/green to an Auto Scaling group.
After release, customers report slow checkouts. The team opens AWS X-Ray, spots a slow third-party call in the trace and fixes it. New feature switches are changed with AppConfig without redeploying the code.
Architecture Diagram
- 1A developer pushes code to the source repository.
- 2CodePipeline starts and calls CodeBuild to compile and test.
- 3Packages are fetched from CodeArtifact during the build.
- 4CodeDeploy releases the build, for example using blue/green.
- 5X-Ray and CloudWatch monitor the live application.
Best Practices
- ✓Automate build, test and deploy in a pipeline so every release is repeatable.
- ✓Use blue/green or canary deployments with automatic rollback.
- ✓Store private packages in CodeArtifact and avoid pulling untrusted public packages directly.
- ✓Enable X-Ray tracing on microservices to find latency early.
- ✓Roll out configuration changes with AppConfig instead of redeploying.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Managed Git repository" = CodeCommit; "build and test" = CodeBuild; "deploy" = CodeDeploy; "pipeline" = CodePipeline.
- "Trace requests across microservices" = AWS X-Ray.
- "Private package repository" = CodeArtifact.
- "Browser-based shell" = CloudShell; "cloud IDE" = Cloud9; "feature flags and config" = AppConfig.
Finished this lesson?
0 of 43 lessons done · 0% of the course

