aws ec2 describe-instance-topology
Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--filtersThe filters.--group-namesThe name of the placement group that each instance is in.--instance-idsThe instance IDs.--max-resultsThe maximum number of items to return for this request.--next-tokenThe token returned from a previous paginated request.