Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search programmatically if name contains a pattern in AWS SSM parameter

I'm looking for a programmatic way to retrieve parameters just by giving the name or a part of the complete path (instead of giving the full path with the name).

It's pretty easy using the Parameter Store AWS Systems Manager console, if I type tokens, I retrieve all parameters where the Name contains tokens :

tokens_search

Is there a way to do the same but using AWS CLI or AWS SDK (python or Go preferably) ?

like image 488
Nicolas Pepinster Avatar asked May 18 '26 11:05

Nicolas Pepinster


1 Answers

I think this is what you are after:

aws ssm describe-parameters --parameter-filters Key=Name,Values=token,Option=Contains
like image 76
Marcin Avatar answered May 21 '26 06:05

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!