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)

gefragt vor 8 Monaten267 Aufrufe
2 Antworten
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
beantwortet vor 8 Monaten
0
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen