AutoScaling for EC2 instance with Nodejs Application

0

Hi All,

We have EC2 instance where we deployed nodeJS code on it. Now we are planning to implement autoscaling on it for high availability.

We are having two weeks sprint and every two weeks code will be deployed to EC2 instance.

As part of autoscaling we will create launch template. How to make sure launch template will be updated with latest AMI which has latest deployments.

Regards, Rajesh B

  • In addition to the options for updating the AMI in the answers below, you can also then run an Instance Refresh on the ASG to replace all the instances with the updated AMI (unless you have a CI/CD pipeline setup to update the instances in place)

asked 7 months ago254 views
2 Answers
1

You can store the latest AMI ID in the SSM Parameter Store as a parameter. And, in the launch template, use the parameter to use the latest AMI ID in your deployments automatically.

Using SSM Parameter store will additionally allow you to keep track of versions of AMI IDs For reference: https://docs.aws.amazon.com/autoscaling/ec2/userguide/using-systems-manager-parameters.html

profile picture
answered 7 months ago
0
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions