Getting a list of instances in an EC2 auto scale group?

前端 未结 7 1025
一整个雨季
一整个雨季 2020-12-19 04:13

Is there a utility or script available to retrieve a list of all instances from AWS EC2 auto scale group?

I need a dynamically generated list of production instance

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-19 04:57

    The describe-auto-scaling-groups command from the AWS Command Line Interface looks like what you're looking for.

    Edit: Once you have the instance IDs, you can use the describe-instances command to fetch additional details, including the public DNS names and IP addresses.

提交回复
热议问题