CodeDeploy offers two (2) deployment sort choices:
Choice 1 – In-place Deployment
In-place deployment: The appliance on every occasion within the deployment group is stopped, the most recent software revision is put in, and the brand new model of the applying is began and validated. You need to use a load balancer so that every occasion is deregistered throughout its deployment after which restored to service after the deployment is full. Solely deployments that use the EC2/On-Premises compute platform can use in-place deployments. AWS Lambda compute platform deployments can’t use an in-place deployment sort.
Choice 2 – Blue/inexperienced Deployment
Blue/inexperienced deployment: The habits of your deployment will depend on which compute platform you utilize:
- Blue/inexperienced on an EC2/On-Premises compute platform: The cases in a deployment group (the unique surroundings) are changed by a distinct set of cases (the substitute surroundings). When you use an EC2/On-Premises compute platform, remember that blue/inexperienced deployments work with Amazon EC2 cases solely.
- Blue/inexperienced on an AWS Lambda compute platform: Visitors is shifted out of your present serverless surroundings to at least one together with your up to date Lambda operate variations. You’ll be able to specify Lambda features that carry out validation assessments and select the best way by which the site visitors shift happens. All AWS Lambda compute platform deployments are blue/inexperienced deployments. Because of this, you don’t want to specify a deployment sort.
- Blue/inexperienced on an Amazon ECS compute platform: Visitors is shifted from the duty set with the unique model of a containerized software in an Amazon ECS service to a substitute process set in the identical service. The protocol and port of a specified load balancer listener are used to reroute manufacturing site visitors. Throughout deployment, a check listener can be utilized to serve site visitors to the substitute process set whereas validation assessments are run.
The CodeDeploy agent is a software program package deal that, when put in and configured on an occasion, makes it potential for that occasion for use in CodeDeploy deployments. The CodeDeploy agent communicates outbound utilizing HTTPS over port 443.
It is usually essential to notice that the CodeDeploy agent is required provided that you deploy to an EC2/On-Premises compute platform. The agent just isn’t required for deployments that use the Amazon ECS or AWS Lambda compute platform.