Ubuntu 终端中的 EC2 API 工具格式化

Ubuntu 终端中的 EC2 API 工具格式化

我的 Mac 上的 ec2 cli 工具的输出很好,格式如下:

RESERVATION     r-xxxx      xxxx    cl-xx  
INSTANCE        i-xxxx      ami-xxx                   
TAG     instance        i-xxx      Name    xxxx
etc...

在我的 Ubuntu 机器上,输出非常难以阅读。我按照 Ubuntu 帮助中的说明进行操作: https://help.ubuntu.com/community/EC2APITools

有谁知道我缺少什么才能获得比这更好的输出?

+------------+--------------+----------------------+------------------------------------------+---------+--------------+--------------------------
------+----------------+-------------------------------------------------------------------------------------------------+--------------+---------
----------------------------------------------------------------------------------------------------------------------+--------------------+------
| instanceId |   imageId    |    instanceState     |                  reason                  | keyName | instanceType |        launchTime        
lId   |   monitoring   |                                           stateReason                                           | architecture | rootDevi
                                           blockDeviceMapping                                                         | virtualizationType |     
+------------+--------------+----------------------+------------------------------------------+---------+--------------+--------------------------
------+----------------+-------------------------------------------------------------------------------------------------+--------------+---------
----------------------------------------------------------------------------------------------------------------------+--------------------+------
| i-xxxxxx | ami-xxxxxx | code=80 name=stopped | User initiated (2011-07-14 04:14:38 GMT) | somekey   | t1.micro     | 2011-07-14T03:46:43.000Z 
d9529 | state=disabled | code=Client.UserInitiatedShutdown message=Client.UserInitiatedShutdown: User initiated shutdown | i386         | ebs   

答案1

ec2-version这可能是版本差异。比较每台机器上的输出。

尝试从以下位置下载 EC2 API 工具http://aws.amazon.com/developertools/351(这些 Ubuntu 文档链接到的特定版本可能不是最新版本。)

相关内容