# Restart EC2 and on-premises fleets faster with AWS CodeDeploy RESTART deployment mode

DevFeed: [Restart EC2 and on-premises fleets faster with AWS CodeDeploy RESTART deployment mode](<https://devfeed.tech/articles/restart-ec2-and-on-premises-fleets-faster-with-aws-codedeploy-restart-deployment-mode-64847.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/devops/restart-ec2-and-on-premises-fleets-faster-with-aws-codedeploy-restart-deployment-mode/>)

Author: Iskandar Anvarov

Published: 2026-10-05T15:46:02Z

Content type: tutorial

Language: en

Sources: [AWS DevOps & Developer Productivity Blog](<https://devfeed.tech/sources/aws-devops-developer-productivity-blog.md>)

Topics: [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [blue-green deployment](<https://devfeed.tech/topics/blue-green-deployment.md>)

Tags: [amazon-cloudwatch](<https://devfeed.tech/tags/amazon-cloudwatch.md>), [amazon-ec2](<https://devfeed.tech/tags/amazon-ec2.md>), [amazon-elastic-compute-cloud-amazon-ec2](<https://devfeed.tech/tags/amazon-elastic-compute-cloud-amazon-ec2.md>), [amazon-eventbridge](<https://devfeed.tech/tags/amazon-eventbridge.md>), [announcements](<https://devfeed.tech/tags/announcements.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-codedeploy](<https://devfeed.tech/tags/aws-codedeploy.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [health-checks](<https://devfeed.tech/tags/health-checks.md>), [intermediate-200](<https://devfeed.tech/tags/intermediate-200.md>), [rollback](<https://devfeed.tech/tags/rollback.md>)

## AI overview

AWS CodeDeploy's RESTART deployment mode reapplies the last successful revision to EC2 and on-premises in-place fleets while retaining deployment configurations, lifecycle hooks, health checks, alarms, rollback behavior, and deployment history. Testing found up to 6.14x faster completion in specific fleet scenarios; the results depend on factors such as revision size, agent version, hooks, and deployment configuration.

## Source excerpt

AWS CodeDeploy now offers a purpose-built RESTART deployment mode that reapplies the last successful revision to EC2 and on-premises fleets. It keeps restarts inside CodeDeploy with the same batch sizing, health checks, alarm monitoring, and rollback behavior as a standard deployment, and ran up to 6.1x faster in testing.