Searching for Systems Manager parameters
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 Amazon Systems Manager console, the Amazon Command Line Interface (Amazon CLI), the Amazon Tools for PowerShell, or the DescribeParameters API to search for parameters.
Search for a parameter (console)
Open the Amazon Systems Manager console at https://console.amazonaws.cn/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.
Search for a parameter (Amazon CLI)
Use the describe-parameters
command to view information about one
or more parameters in the Amazon CLI.
The following examples demonstrate various options you can use to view information about the parameters in your Amazon Web Services account. For more information about these options, see describe-parameters in the Amazon Command Line Interface User Guide.
Install and configure the Amazon Command Line Interface (Amazon CLI), if you haven't already.
For information, see Installing or updating the latest version of the Amazon 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 Amazon Key Management Service (Amazon KMS) key used to encrypt aSecureString
parameter created in your account. Alternatively, you can enteralias/aws/ssm
to use the default Amazon KMS key for your account. For more information, see Create a SecureString parameter (Amazon 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": [] } ] }