DOP-C02

Introduction to AWS CodeDeploy

Deploying to EC2, on-premises servers, Lambda and ECS with AWS CodeDeploy: AppSpec files and lifecycle hooks, in-place and blue/green deployments, traffic shifting, the agent, rollback and troubleshooting.

  • 5 lessons
  • Module quiz

AWS CodeDeploy automates application deployments to Amazon EC2 instances, on-premises servers, AWS Lambda functions and Amazon ECS services. It deploys a revision described by an AppSpec file, runs lifecycle hooks that install, start and validate the application, shifts traffic gradually where the platform allows, and rolls back automatically when a deployment fails or an alarm fires.

Where this module fits

CodeDeploy implements the deployment strategies that the exam guide names explicitly: in-place and blue/green deployments, and canary and linear traffic shifting. It is usually called from CodePipeline, and it depends on the artifact repositories for its revisions. Troubleshooting failed CodeDeploy deployments, from agent problems to failing hooks, is a recurring exam topic.

How this module is organised

Understanding Applications and Deployment Groups in AWS CodeDeploy explains the resource model and deployment configurations. The next three lessons cover each compute platform: Deploying to Amazon EC2 and On-Premises Servers, Deploying AWS Lambda Functions with Traffic Shifting and Deploying Amazon ECS Services. Configuring the CodeDeploy Agent, Rollbacks and Troubleshooting explains the agent, automatic rollback and how to diagnose failures.

  1. Understanding Applications and Deployment Groups in AWS CodeDeploy Lesson 1
  2. Deploying to Amazon EC2 and On-Premises Servers Lesson 2
  3. Deploying AWS Lambda Functions with Traffic Shifting Lesson 3
  4. Deploying Amazon ECS Services Lesson 4
  5. Configuring the CodeDeploy Agent, Rollbacks and Troubleshooting Lesson 5
  6. Practise and review
  7. Checkpoint Practice activities across the module
  8. Test your knowledge 6 questions