CodeDeploy offers two (2) deployment kind choices:
Possibility 1 – In-place Deployment
In-place deployment: The appliance on every occasion within the deployment group is stopped, the newest software revision is put in, and the brand new model of the applying is began and validated. You should utilize 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 not use an in-place deployment kind.
Possibility 2 – Blue/inexperienced Deployment
Blue/inexperienced deployment: The habits of your deployment will depend on which compute platform you employ:
- Blue/inexperienced on an EC2/On-Premises compute platform: The situations in a deployment group (the unique atmosphere) are changed by a special set of situations (the substitute atmosphere). For those who use an EC2/On-Premises compute platform, bear in mind that blue/inexperienced deployments work with Amazon EC2 situations solely.
- Blue/inexperienced on an AWS Lambda compute platform: Site visitors is shifted out of your present serverless atmosphere to 1 together with your up to date Lambda perform variations. You possibly can specify Lambda features that carry out validation assessments and select the best way wherein 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 kind.
- Blue/inexperienced on an Amazon ECS compute platform: Site visitors is shifted from the duty set with the unique model of a containerized software in an Amazon ECS service to a substitute job 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 job set whereas validation assessments are run.
The CodeDeploy agent is a software program bundle that, when put in and configured on an occasion, makes it doable for that occasion for use in CodeDeploy deployments. The CodeDeploy agent communicates outbound utilizing HTTPS over port 443.
It’s also vital to notice that the CodeDeploy agent is required provided that you deploy to an EC2/On-Premises compute platform. The agent is just not required for deployments that use the Amazon ECS or AWS Lambda compute platform.