Deploying to AWS CodeDeploy


The deployment of an artifact to AWS CodeDeploy involves several major components as follows:

  • Application – A name that uniquely identifies the application that you want to deploy.

  • Application RevisionAn archive file containing source content – such as source code, web pages, executable files, and deployment scripts – along with an Application Specification File (AppSpec file). Revisions are stored in Amazon S3 buckets or GitHub repositories.
  • Deployment ConfigurationA set of deployment rules and deployment success and failure conditions that AWS CodeDeploy uses during a deployment.
  • Deployment GroupA set of individual instances. A deployment group contains individually-tagged Amazon EC2 instances, Amazon EC2 instances in Auto Scaling groups, or both.



The deployment workflow is illustrated by the following diagram:

    • the AWS CodeDeploy Agent on each participating instance pulls the revision from the specified Amazon S3 bucket or GitHub repository and starts deploying the contents to that instance, following the instructions in the AppSpec file that's provided

Alternative workflow via CloudFormation

A typical workflow based on CloudFormation might look as follows:

  1. Commit or upload the application source code (the 'Revision') – see the Upload File(s) action of the Amazon S3 Object task
  2. Create/Update the CloudFormation stack that provisions the CodeDeploy application and deployment group – see the Create Stack action of the AWS CloudFormation Stack task

Frequently Asked Questions (FAQ)