CodeDeploy supplies two (2) deployment sort 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 appliance 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 sort.
Possibility 2 – Blue/inexperienced Deployment
Blue/inexperienced deployment: The conduct of your deployment relies on which compute platform you employ:
- Blue/inexperienced on an EC2/On-Premises compute platform: The situations in a deployment group (the unique surroundings) are changed by a special set of situations (the alternative surroundings). Should you 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 surroundings to at least one together with your up to date Lambda operate variations. You may specify Lambda capabilities that carry out validation exams and select the way in which wherein the site visitors shift happens. All AWS Lambda compute platform deployments are blue/inexperienced deployments. For that reason, you do not want to specify a deployment sort.
- 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 alternative 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 take a look at listener can be utilized to serve site visitors to the alternative job set whereas validation exams are run.
The CodeDeploy agent is a software program package deal that, when put in and configured on an occasion, makes it attainable for that occasion for use in CodeDeploy deployments. The CodeDeploy agent communicates outbound utilizing HTTPS over port 443.
It is usually 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.