Searching for Parameter Store parameters in Systems Manager
When you have a lot of parameters in your account, it can be difficult to find information about a single or several parameters at a time. In this case, you can use filter tools to search for the ones you need information about, according to search criteria you specify. You can use the AWS Systems Manager console, the AWS Command Line Interface (AWS CLI), the AWS Tools for PowerShell, or the DescribeParameters API to search for parameters.
Searching for a parameter using the console
Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/
. In the navigation pane, choose Parameter Store.
-
Select in the search box and choose how you want to search. For example,
Type
orName
. -
Provide information for the search type you selected. For example:
-
If you're searching by
Type
, choose fromString
,StringList
, orSecureString
. -
If you're searching by
Name
, choosecontains
,equals
, orbegins-with
, and then enter all or part of a parameter name.Note
In the console, the default search type for
Name
iscontains
.
-
-
Press Enter.
The list of parameters is updated with the results of your search.
Searching for a parameter using the AWS CLI
Use the describe-parameters
command to view information about one
or more parameters in the AWS CLI.
The following examples demonstrate various options you can use to view information about the parameters in your AWS account. For more information about these options, see describe-parameters in the AWS Command Line Interface User Guide.
Install and configure the AWS Command Line Interface (AWS CLI), if you haven't already.
For information, see Installing or updating the latest version of the AWS CLI.
-
Replace the sample values in the following commands with values reflecting parameters that have been created in your account.
Note
For
describe-parameters
, the default search type forName
isEquals
. In your parameter filters, specifying"Key=Name,Values=
is the same as specifyingMyParameterName
""Key=Name,Option=Equals,Values=
.MyParameterName
"aws ssm describe-parameters \ --parameter-filters "Key=Name,Option=Contains,Values=
Product
"aws ssm describe-parameters \ --parameter-filters "Key=Type,Values=String"
aws ssm describe-parameters \ --parameter-filters "Key=Path,Values=
/Production/West
"aws ssm describe-parameters \ --parameter-filters "Key=Tier,Values=Standard"
aws ssm describe-parameters \ --parameter-filters "Key=tag:
tag-key
,Values=tag-value
"aws ssm describe-parameters \ --parameter-filters "Key=KeyId,Values=
key-id
"Note
In the last example,
key-id
represents the ID of an AWS Key Management Service (AWS KMS) key used to encrypt aSecureString
parameter created in your account. Alternatively, you can enteralias/aws/ssm
to use the default AWS KMS key for your account. For more information, see Creating a SecureString parameter using the AWS CLI.If successful, the command returns output similar to the following.
{ "Parameters": [ { "Name": "/Production/West/Manager", "Type": "String", "LastModifiedDate": 1573438580.703, "LastModifiedUser": "arn:aws:iam::111122223333:user/Mateo.Jackson", "Version": 1, "Tier": "Standard", "Policies": [] }, { "Name": "/Production/West/TeamLead", "Type": "String", "LastModifiedDate": 1572363610.175, "LastModifiedUser": "arn:aws:iam::111122223333:user/Mateo.Jackson", "Version": 1, "Tier": "Standard", "Policies": [] }, { "Name": "/Production/West/HR", "Type": "String", "LastModifiedDate": 1572363680.503, "LastModifiedUser": "arn:aws:iam::111122223333:user/Mateo.Jackson", "Version": 1, "Tier": "Standard", "Policies": [] } ] }