2015-12-21 71 views
-1

我想定製的AWS輸出RDS描述-DB-快照命令只顯示標識符和根據創建時間排序它!
這是目前我得到我想這AWS RDS描述-DB-快照--query

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
|                                             DescribeDBSnapshots                                             | 
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 
||                                             DBSnapshots                                             || 
|+------------------+-------------------+-----------------------+------------------------------------------------+------------+-------------+----------------+---------------------------+-------+-------------------------+-----------------+------------------+------------------+-------+---------------------------+---------------+------------+---------------+----------------+| 
|| AllocatedStorage | AvailabilityZone | DBInstanceIdentifier |    DBSnapshotIdentifier    | Encrypted | Engine | EngineVersion | InstanceCreateTime  | Iops |  LicenseModel  | MasterUsername | OptionGroupName | PercentProgress | Port | SnapshotCreateTime  | SnapshotType | Status | StorageType |  VpcId  || 
|+------------------+-------------------+-----------------------+------------------------------------------------+------------+-------------+----------------+---------------------------+-------+-------------------------+-----------------+------------------+------------------+-------+---------------------------+---------------+------------+---------------+----------------+| 

回答

-1
aws rds describe-db-instances --query 'DBInstances[*].[DBInstanceIdentifier,InstanceCreateTime]' 
+0

此命令不排序按照創建時間在這個問題要求簡化輸出。 – Dianna