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)

demandé il y a 8 mois267 vues
2 réponses
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
répondu il y a 8 mois
0
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions