-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"parameter-filters" not working for "aws ssm get-parameters-by-path" ? #2850
Comments
Could you post debug logs by adding |
I've created two test parameters under
I added a
But when I try to filter by
As you can see, the filtering works for |
@joguSD - any updates? |
As far as I can tell the CLI is passing along the correct arguments in the same manner in both cases so this is ultimately a difference in the service behavior between the two API calls. You should open up a support ticket to get a hold of the service team, I'll try pinging them as well. Closing out the issue here as there's no actionable item in this repo. |
The documentation says it's not supported...
https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_GetParametersByPath.html |
Yeah, that note wasn't there when I posted this over 2 years ago. Thanks. |
Just if someone stumbles across this issue like I did: I worked around this restriction by labeling the parameters. |
Genius @Obirah ! Spent hours trying to work out why the tag functionality didn't work. Found your comment - sorted! Cheers :) |
Another option is to use describe-parameters instead (when we need to filter by tags) and then pipe the result to get-parameter. See: |
To close the loop on this, I ended up doing something similar to @cosmok's suggestion: A call to |
* get questions' default answers from toml * make black happy * add more docs * rename question's attribute 'default_from_toml' to 'defaultFromToml' and rename 'valueof' to 'key' and add some docs * Add preload_value * Allow to pass toml file to interactive flow run() * Update related classes to utilize proload value context object * Update test * Add missing docstring * Remove samconfig change * Rename extra_context to context because it is required field now * Remove toml logics from this PR * Update comment Co-authored-by: Sam Liu <xinhol@amazon.com> Co-authored-by: _sam <3804518+aahung@users.noreply.github.com>
Unless I'm mistaken, the documentation for
get-parameters-by-path
says you can filter the parameter results viaparameter-filters
: http://docs.aws.amazon.com/cli/latest/reference/ssm/get-parameters-by-path.htmlI can't seem to get this to work:
This returns ALL parameters in
/my/path
instead of only those tagged withxyz
.describe-parameters
has the sameparameter-filters
and it works:This will correctly return only parameters tagged with
xyz
.Am I missing something?
The text was updated successfully, but these errors were encountered: