Determine if instance is a part of some AutoScaling Group in AWS


Is it possible to determine from instance if it’s a member of AutoScaling Group in AWS?

Thanks in advance!


You can run this command 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.

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

Leave a Reply