amazon web services - How to determine the state of an AWS instance -


i'm trying determine how remove instance several applications (freeipa, chef, service discovery) within aws autoscaling group i'm finding there's no reliable way determine if instance stopping (sometimes our admins take instance out of asg analysis) vs terminating. if instance stopped retain ability have stay connected our ldap , other systems. know way this?

is instance ebs backed or using instance store? if instance store, cannot stop (only terminate it)

have looked @ ec2 api (via aws-sdk maybe)? (looks describe-instances , looking @ reservations should trick here)

http://docs.aws.amazon.com/awsec2/latest/apireference/api_describeinstances.html


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -