【问题标题】:get-parameters-by-path is not working as documentedget-parameters-by-path 没有按记录工作
【发布时间】:2021-01-26 15:32:36
【问题描述】:

环境

$ 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 aws-ssm


    【解决方案1】:

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

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

    【讨论】:

    • 这是一个 gitbash 问题,该命令在 windows cmd 提示符下工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-16
    • 2020-12-30
    • 2014-11-09
    • 2017-05-30
    • 2015-10-19
    • 2015-09-18
    相关资源
    最近更新 更多