'List all parameters in AWS SSM Parameter Store

How do I list all parameters in the AWS Systems Manager (SSM) Parameter Store? I am using the AWS CLI.

I can store them with aws ssm put-parameter. I can fetch them with aws ssm get-parameter. I can list all documents with aws ssm list-documents, but I do not see a corresponding list-parameters function.



Solution 1:[1]

I think what you want is

    aws ssm describe-parameters

docs

Solution 2:[2]

You are looking for describe-parameters.

Solution 3:[3]

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"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 marcincuber
Solution 2 bwest
Solution 3 thoroc