DVA-C03

Introduction to the AWS CI/CD Services

CodeBuild, CodeDeploy and CodePipeline for automated build and delivery.

  • 5 lessons
  • Module quiz

Continuous integration (CI) means merging code changes often and building and testing each change automatically, so problems are found within minutes. Continuous delivery (CD) extends this by preparing every successful change for release and deploying it through test environments to production by an automated process. Together, they let teams release small changes frequently and safely instead of large, risky releases.

AWS provides a set of managed services that implement this process. AWS CodePipeline orchestrates the release, running stages such as source, build, test and deploy whenever code changes. AWS CodeBuild compiles code, runs tests and produces deployable artifacts. AWS CodeDeploy rolls new versions out to EC2 instances, on-premises servers, Lambda functions and ECS services, with automatic rollback. AWS CodeArtifact stores software packages. CodePipeline is charged per execution minute for V2 pipelines, CodeBuild per build minute, and CodeDeploy is free for EC2, Lambda and ECS deployments.

Where these services fit

Source code usually lives in GitHub, GitLab or Bitbucket, connected through AWS CodeConnections, or in AWS CodeCommit. The exam expects developers to know the files that control builds and deployments, buildspec.yml and appspec.yml, the CodeDeploy deployment types and lifecycle hooks, and how pipelines promote the same artifact through several environments.

How this module is organised

Building and Testing Code with AWS CodeBuild explains the buildspec file and build environments. Deploying Applications with AWS CodeDeploy explains deployment targets, the AppSpec file, lifecycle hooks, traffic shifting and rollback. Automating Releases with AWS CodePipeline explains stages, actions, artifacts, V2 pipeline features and approvals. Managing Releases with Branches, Tags and Promoted Artifacts explains how branching strategies map to environments, and Managing Software Packages with AWS CodeArtifact explains package repositories and supply chain security.

  1. Building and Testing Code with AWS CodeBuild Lesson 1
  2. Deploying Applications with AWS CodeDeploy Lesson 2
  3. Automating Releases with AWS CodePipeline Lesson 3
  4. Managing Releases with Branches, Tags and Promoted Artifacts Lesson 4
  5. Managing Software Packages with AWS CodeArtifact Lesson 5
  6. Practise and review
  7. Checkpoint Practice activities across the module
  8. Test your knowledge 10 questions