if instance is a part of some AutoScaling Group in AWS or not

0 votes
Is it possible to determine from instance if it's a member of AutoScaling Group in AWS?
Jun 2, 2018 in AWS by Flying geek
• 3,280 points
1,462 views

1 answer to this question.

0 votes

You can run this command below on an EC2 Linux instance to check if the current instance is in an AutoScaling group. You will need to check if the returned value is empty to determine if it is in an AutoScaling group or not.

aws autoscaling describe-auto-scaling-instances --instance-ids `curl --silent http://169.254.169.254/latest/meta-data/instance-id 2>&1`

Note, you will have to have the AWS CLI Tool installed and configured before you can run this command.

Take reference from: https://docs.aws.amazon.com/cli/latest/reference/autoscaling/describe-auto-scaling-instances.html

CLI Docs: https://aws.amazon.com/cli/

Want to learn more about AWS Instances? Check out this live instructor-led AWS training today.

answered Jun 2, 2018 by Cloud gunner
• 4,670 points

Related Questions In AWS

0 votes
1 answer
0 votes
0 answers
0 votes
1 answer

In Amazon Data Pipeline, how to make sure only once instance of a pipeline is running at any time?

On the CopyTablesActivity, you could set a lateAfterTimeout attribute ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,090 points
1,933 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,529 views
+2 votes
1 answer
+3 votes
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP