按路径获取参数未按记录工作

get-parameters-by-path is not working as documented

环境

$ aws --version
aws-cli/2.0.4 Python/3.7.5 Windows/10 botocore/2.0.0dev8

AWS 控制台

命令:

aws ssm get-parameters-by-path --path "/site/"

错误信息:

An error occurred (ValidationException) when calling the GetParametersByPath operation: The parameter doesn't meet the parameter name requirements. The parameter name must begin with a forward slash "/". It can't be prefixed with \"aws\" or \"ssm\" (case-insensitive). It must use only letters, numbers, or the following symbols: . (period), - (hyphen), _ (underscore). Special characters are not allowed. All sub-paths, if specified, must use the forward slash symbol "/". Valid example: /get/parameters2-/by1./path0_.

AWS 文档:

https://docs.aws.amazon.com/cli/latest/reference/ssm/get-parameters-by-path.html

更新

该命令在 Windows 命令提示符下有效,此问题与 Git bash for windows.

有关

尝试升级您的 AWS cli 客户端。存在一个错误,您的版本可能会受到影响。

Why am I getting an error when querying SSM parameters via get-parameters-by-path?