What is AWS CodeDeploy?
AWS CodeDeploy is a deployment service that automatically deploys applications to EC2 instances, Lambda functions, ECS services, and on-premises servers. The service supports various deployment strategies like rolling updates, Blue/Green, and Canary deployments with automatic rollback on failures.
Key Features
- Blue/Green and rolling deployment strategies
- Automatic rollback on deployment failures
- Integration with CloudWatch for deployment monitoring
- Support for EC2, Lambda, ECS, and on-premises
- Deployment groups for environment management
Common Use Cases
Zero-Downtime Deployments: Blue/Green deployments create a new environment and only switch traffic after validation. Rollback happens by switching back to the old environment in seconds.
Gradual Rollouts: Canary deployments roll out updates first to 10% of instances. On success, the remaining 90% follow. CloudWatch alarms can automatically trigger rollbacks.
Hybrid Deployments: CodeDeploy deploys to AWS and on-premises servers with the same configuration. Ideal for gradual cloud migration or hybrid architectures.
Benefits
- Free for EC2 and on-premises deployments
- Minimizes deployment risk through gradual rollouts
- Automatic rollback reduces MTTR
- Native integration with CodePipeline
Integration with innFactory
As an AWS Reseller, innFactory supports you with AWS CodeDeploy: deployment strategy design, Blue/Green architecture, rollback automation, and on-premises integration.
Typical Use Cases
Frequently Asked Questions
What does AWS CodeDeploy cost?
Deployments to EC2 and on-premises are free. Deployments to Lambda and ECS cost $0.02 per deployment. There is no cost for CodeDeploy agent installation.
What is Blue/Green deployment?
Blue/Green creates a new environment (Green) parallel to the existing one (Blue). After successful validation, traffic is redirected. Problems can be rolled back immediately.
How does rollback work?
CodeDeploy can roll back to a previous version automatically or manually. Automatic rollback triggers on failed deployments or CloudWatch alarm activations.
Can CodeDeploy deploy to on-premises servers?
Yes, CodeDeploy supports on-premises servers and hybrid scenarios. Install the CodeDeploy agent on your servers and register them in CodeDeploy.