【问题标题】:How to correctly specify path in aws ssm get-parameters-by-path?如何在 aws ssm get-parameters-by-path 中正确指定路径?
【发布时间】:2019-10-30 23:56:30
【问题描述】:

使用 aws cli,我可以在 AWS 参数存储中成功创建参数并使用 get-parameters 检索它。

例子:

anarinsky:~> aws ssm put-parameter --name /IAD/ERP/Oracle/addUsers --value "Milana,Mariana,Mark,Miguel" --type StringList --region us-east-1
anarinsky:~> aws ssm get-parameters --name "/IAD/ERP/Oracle/addUsers" --region us-east-1

{"Parameters": [{ "Name": "/IAD/ERP/Oracle/addUsers","Type": "StringList","Value": "Milana,Mariana,Mark,Miguel" } ], "InvalidParameters": []
}

如何使用 aws ssm get-parameters-by-path 检索相同的参数?

【问题讨论】:

    标签: amazon-web-services aws-cli


    【解决方案1】:

    通过路径检索命令是

    aws ssm get-parameters-by-path --path "/IAD/ERP/Oracle/" --region us-east-1
    

    【讨论】:

      【解决方案2】:

      这是您问题的文档链接

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

      aws ssm get-parameters-by-path --path "/site/newyork/department/" --region any

      【讨论】:

        猜你喜欢
        • 2020-12-30
        • 2021-01-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-05-15
        • 2020-09-14
        • 1970-01-01
        相关资源
        最近更新 更多