How to isolate the ...
 
Notifications
Clear all

How to isolate the ec2 instances if code deploy failure is continuously terminating the ec2 instance in AWS ?  

  RSS

amrit_3327
(@amrit_3327)
Trusted Member
Joined: 8 months ago
Posts: 51
25/07/2020 3:01 am  

Life cycle event of code deploy seems to shutting down the instance of code deploy failure


Quote
Topic Tags
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 8 months ago
Posts: 51
25/07/2020 3:04 am  

We can use following command on aws cli to isolate the ec2 instance.

 

$ aws autoscaling complete-lifecycle-action --profile account-name --auto-scaling-group-name test-ai-2-ELBAutoScale-82ZJU9SGIOR6-ServerGroup-4FBPJJ90KQLG --lifecycle-action-result CONTINUE --lifecycle-hook-name CodeDeploy-managed-automatic-launch-deployment-hook-tes342CodeDeploy1IGIHJCI9PUYRDeploymentGroup1BYZ90G1HRH27-f09bfcb5-c9ae-40ab-l009-3c70a94ea528 --instance-id "instanceid"


ReplyQuote
Share: