簡體   English   中英

如何通過 CLI 列出所有 RDS 快照並將其中一些字段導入電子表格

[英]How to list all the RDS snapshots through CLI and import some of those fields into a spreadsheet

我需要列出所有可用集群的自動和手動快照的所有這些((DBSnapshotIdentifier、DBInstanceIdentifier、AvailabilityZone、SnapshotType、Encrypted、SnapshotCreateTime)屬性,並將這些數據導入到電子表格中。

我嘗試aws rds describe-db-snapshots這個命令,但我需要單獨獲取這些屬性並將它們導入電子表格

使用常規 cli 命令並將其保存到 json 文件中。 aws rds describe-db-snapshots > filename.json然后使用 JQ 通過命令行將 JSON 轉換為 CSV

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM