[英]How to list all the RDS snapshots through CLI and import some of those fields into a spreadsheet
I need to list all these ( ( DBSnapshotIdentifier, DBInstanceIdentifier, AvailabilityZone, SnapshotType, Encrypted, SnapshotCreateTime) properties of both automated and manual snapshots of all the available clusters and import this data into a spreadsheet.我需要列出所有可用集群的自动和手动快照的所有这些((DBSnapshotIdentifier、DBInstanceIdentifier、AvailabilityZone、SnapshotType、Encrypted、SnapshotCreateTime)属性,并将这些数据导入到电子表格中。
I tried aws rds describe-db-snapshots
this command but I need to get those properties alone and also import those to a spreadsheet我尝试
aws rds describe-db-snapshots
这个命令,但我需要单独获取这些属性并将它们导入电子表格
Use the regular cli command and save it into a json file.使用常规 cli 命令并将其保存到 json 文件中。
aws rds describe-db-snapshots > filename.json
and then convert JSON to CSV via the Command Line Using JQ aws rds describe-db-snapshots > filename.json
然后使用 JQ 通过命令行将 JSON 转换为 CSV
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.