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)

질문됨 8달 전267회 조회
2개 답변
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
답변함 8달 전
0

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠