当我们使用过滤器运行命令时,出现错误:
使用
$ aws rds describe-db-instances --filters Name=instance-state-name,Values=running
An error occurred (InvalidParameterValue) when calling the
DescribeDBInstances operation: Unrecognized filter name: instance-state-name.
使用
aws rds describe-db-instances
的过滤器的正确语法是什么?
xyz
]" --query "DBInstances[*].[DBInstanceArn,Engine,DBInstanceIdentifier,EngineVersion,Address]" - chinta kiran--query
选项来实现。请查看文档:http://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html - Dunedan--query
,例如:aws rds describe-db-instances --query "DBInstances[?DBInstanceIdentifier==xyz].[DBInstanceArn,Engine,DBInstanceIdentifier,EngineVersion,Address]"
- Dunedan