-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fetching a single parameter with full path does not work #47
Comments
Hi @tompanchee , could you please clarify what you are hoping to do? Maybe providing a short sample of code would help. The client has another method called GetParameterAsync that allows you search by a single parameter. Is this what you are looking for? |
Hi @klaytaybai, I was thinking of using GetParametesAsync to reduce roundtrips to the API when there are multiple fully qualified paths. I thought it could work like this
The dictionary contains the parameters to be fetched and their parameter names in .net configuration. If the .net configuration name is not given the parameter will be named according to the source (/bar/foo/param2 => bar:foo:param2. If this sounds sensible I could catch this one and start working on a PR. |
Could someone please comment on my suggestion. This will start closing in a few days. |
I think you're going to find that you will be limited by the service's API. The new method could possibly be setup to do GetParametersAsync requests as few times as necessary to get all the parameters based on their shared path prefixes. Is that essentially what you are thinking? I've asked some of the other AWS .NET SDK teams members to take a look at this and give you their opinion too. |
I wrote a simple test app to test the GetParametersAsyncMethod and it seemed to work. We are using the same method in node.js projects. |
We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
This is a feature greatly desired by our team. We have multiple use cases where the ability to retrieve a single SSM parameter (or a few parameters in different path sections) into |
draft PR to support this: #107 |
@tompanchee Good afternoon. Could you please check if of Amazon.Extensions.Configuration.SystemsManager version 4.0.0 fixes your scenario and if this issue could be closed? Thanks, |
Not the issue author, but I've looked at the code change for v4, and pretty sure this requested use case is not covered by it. |
We are working on multiple projects in AWS and have multiple parameters. Some projects need only one parameter from a hierarchy. When adding a full path to the source's path property no parameters are fetched.
I tried with the SimpleSystemsManagement client and noticed that the method used (GetParametersByPathAsync) does not return any parameters with a full parameter path. There should be a method for getting single parameter(s) and optionally it could have the configuration key(s) as an parameter.
The text was updated successfully, but these errors were encountered: