1 Answer
- Newest
- Most votes
- Most comments
0
One way to do it is by using AWS CodePipeline that will deploy CloudFormation template with EC2 Image Builder Recipe.
https://aws.amazon.com/codepipeline/
https://aws.amazon.com/cloudformation/
NodeJS example: https://dev.to/aws-builders/deploying-nodejs-application-on-amazon-ec2-using-aws-codepipeline-20i1
answered 9 months ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Do you have any example handy for this @myronix88 as I am doing this for the first time.
This would all tie into CodeDeploy which will deploy applications to an EC2 automaticlly https://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html
I think I need to rephrase my question:
Suppose you have an instance which has 10 binaries installed. It is serving some application and your website only has 100 users. With time your application starts gaining popularity and the users are 500 now. In an ideal case we should spin up for more instances but that is not the right approach as we are not going to increase the number of instances. Having said that there is some autoscaling that should be happening and in front of it a load balancer is running which is responsible for managing the traffic. How to make sure when we update the server with more binaries then how the ASG is going to pick that updated image using CI/CD pipeline?