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)

preguntada hace 8 meses267 visualizaciones
2 Respuestas
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
respondido hace 8 meses
0
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas