简体   繁体   English

列出 AWS SSM Parameter Store 中的所有参数

[英]List all parameters in AWS SSM Parameter Store

How do I list all parameters in the AWS Systems Manager (SSM) Parameter Store?如何列出 AWS Systems Manager (SSM) Parameter Store 中的所有参数? I am using the AWS CLI.我正在使用 AWS CLI。

I can store them with aws ssm put-parameter .我可以用aws ssm put-parameter存储它们。 I can fetch them with aws ssm get-parameter .我可以使用aws ssm get-parameter获取它们。 I can list all documents with aws ssm list-documents , but I do not see a corresponding list-parameters function.我可以使用aws ssm list-documents列出所有文档,但我没有看到相应的list-parameters函数。

I think what you want is我想你想要的是

    aws ssm describe-parameters

docs 文档

您正在寻找describe-parameters

If you need to list parameters' name and know the path you could use the following:如果您需要列出参数的名称并知道路径,您可以使用以下命令:

aws ssm get-parameters-by-path \
    --path "/my-common-path" \
    --recursive \
    --query "Parameters[*].Name"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM