können Sie
aws ec2 describe-instances \
--query "Reservations[*].Instances[*].{privateIP:PrivateIpAddress, tags:Tags[*]}"
Folgendes tun können Sie die table
Ausgang hinzufügen, wenn nötig, aber die Sicht ist nicht so gut, wenn man mehrere Tags haben
aws ec2 describe-instances \
--query "Reservations[*].Instances[*].{privateIP:PrivateIpAddress, tags:Tags[*]}" \
--output table
der Ausgang wird
----------------------------
| DescribeInstances |
+--------------------------+
| privateIP |
+--------------------------+
| 172.xx.x.xx |
+--------------------------+
|| tags ||
|+--------------+---------+|
|| Key | Value ||
|+--------------+---------+|
|| Name | xxxxx ||
|| Autobuild | xxxxx ||
|| Environment | xxxxx ||
|+--------------+---------+|
Sie sollten die Beispiele auf [jmespath.org] (http://jmespath.org/examples.html) überprüfen. –