AWS CLI 输出不包括 属性 描述
AWS CLI output does not include property descriptions
aws rds describe-db-instances --db-instance-identifier aurora-postgresql-build-1
产生以下输出(排除一些唯一标识符 names/ARNs 等):
DBINSTANCES 1 False eu-west-1c 1 rds-ca-2019 False False
aurora-postgresql-build <arn here> db.r5.large aurora-postgresql-build-1
available 0 <some thing that might be sensitive> False aurora-postgresql
11.9 False 2020-12-01T15:44:01.505000+00:00 <another arn here>
postgresql-license postgres 0 False False 01:18-01:48
wed:02:19-wed:02:49 0 False True aurora
集群标识符或引擎类型之类的东西没问题,但False
什么也没有解释,而且出现了多次。如何查询 return 列名列表或对 returned 值所描述的内容进行某种描述?
您是否将 CLI 配置为 return text
而不是 json
?检查 ~/.aws/config
:
中的输出设置
[default]
region=us-west-2
output=text
如果您将输出更新为 json
,这应该 return 具有 属性 名称的内容以及输出中的值。我相信 json 是默认设置,但您可以更新此文件中的设置以覆盖所有命令。
如果您只想覆盖单个命令的输出,您还可以将 --output json
添加到命令的末尾,例如:
aws rds describe-db-instances --db-instance-identifier aurora-postgresql-build-1 --output json
格式选项有:json
、yaml
、yaml-stream
、text
、table
参考文献:
aws rds describe-db-instances --db-instance-identifier aurora-postgresql-build-1
产生以下输出(排除一些唯一标识符 names/ARNs 等):
DBINSTANCES 1 False eu-west-1c 1 rds-ca-2019 False False
aurora-postgresql-build <arn here> db.r5.large aurora-postgresql-build-1
available 0 <some thing that might be sensitive> False aurora-postgresql
11.9 False 2020-12-01T15:44:01.505000+00:00 <another arn here>
postgresql-license postgres 0 False False 01:18-01:48
wed:02:19-wed:02:49 0 False True aurora
集群标识符或引擎类型之类的东西没问题,但False
什么也没有解释,而且出现了多次。如何查询 return 列名列表或对 returned 值所描述的内容进行某种描述?
您是否将 CLI 配置为 return text
而不是 json
?检查 ~/.aws/config
:
[default]
region=us-west-2
output=text
如果您将输出更新为 json
,这应该 return 具有 属性 名称的内容以及输出中的值。我相信 json 是默认设置,但您可以更新此文件中的设置以覆盖所有命令。
如果您只想覆盖单个命令的输出,您还可以将 --output json
添加到命令的末尾,例如:
aws rds describe-db-instances --db-instance-identifier aurora-postgresql-build-1 --output json
格式选项有:json
、yaml
、yaml-stream
、text
、table
参考文献: