AWS CodeDeploy provides two deployment types, which are discussed in the following sections.
The Deployment strategy in AWS CodeDeploy
In-place deployment
In this deployment type, the running application on each instance in the deployment group needs to stop. Post that, the latest application gets installed on the instances and then start the application. Once the application get started, it need to get validated. ELB can be used to deregistered each instance during its deployment and then restored to service after the deployment is complete.
The following is the diagram and workflow of a typical AWS CodeDeploy in-place deployment type: