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 ?

2 Posts
1 Users
0 Likes
815 Views
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 4 years ago
Posts: 65
Topic starter  

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: 4 years ago
Posts: 65
Topic starter  

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: