The Deployment strategy in AWS CodeDeploy
AWS CodeDeploy provides two deployment types, which are discussed in the following sections.
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:

Blue-green deployment
Blue-green deployment is the deployment strategy or a pattern where we can reduce the downtime by having two production environments. It provides near zero-downtime rollback capabilities. The basic idea of blue-green deployment is to shift the traffic from the current environment to another environment. Both the environments will be identical...