Comments (10)
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?
from aws-dotnet-extensions-configuration.
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
config.AddSystemsManager(source => {
source.Parameters = new Dictionary<string, string> {
{"/foo/bar/param1", "aws:app:param1"},
{"/bar/foo/param2", null }
};
source.ReloadAfter = TimeSpan.FromMinutes(15);
});
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.
from aws-dotnet-extensions-configuration.
Could someone please comment on my suggestion. This will start closing in a few days.
from aws-dotnet-extensions-configuration.
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.
from aws-dotnet-extensions-configuration.
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.
from aws-dotnet-extensions-configuration.
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.
from aws-dotnet-extensions-configuration.
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 IConfiguration
would be very helpful.
Please don't close this issue.
from aws-dotnet-extensions-configuration.
draft PR to support this: #107
from aws-dotnet-extensions-configuration.
@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,
Ashish
from aws-dotnet-extensions-configuration.
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.
from aws-dotnet-extensions-configuration.
Related Issues (20)
- ssm:GetParametersByPath permission is required HOT 2
- Unable to load params from AWS Param Store HOT 7
- "AddSystemsManager" method doesn't work with DI and .Net 6 HOT 6
- Missing documentation for loading Secret Manager secrets as SSM parameters HOT 3
- AddSystemsManager Takes 1+ Minutes to Complete HOT 3
- JsonParameterProcessor::ProcessParameters fails when different objects share property names HOT 4
- Loading AppConfig feature flags into strong-type options HOT 7
- Support for the AWS Lambda Extension HOT 4
- NotImplementedException - application/json; charset=utf-8 HOT 6
- AddSystemsManager with SecretsManager path resolves parameters with ':' prefix HOT 4
- Missing dependency AWSSDK.SecurityToken ? HOT 5
- Duplicate SSM parameter with different Case cause the whole SSM parameter fail to load HOT 10
- 5.1.1 breaks existing application using StringList HOT 6
- amazon.extensions.configuration.systemsmanager is missing NuGet package README file
- AddAppConfig default encapsulation HOT 1
- Add manual reload ability HOT 3
- Mark project as not Native AoT ready HOT 3
- After updating from 6.1.0 to 6.1.1 loading data from param store takes 10s as oppose to 1s HOT 3
- Permissions section in readme.md incorrect. Required permission is ssm:GetParametersByPath not ssm:GetParameters HOT 2
- Better IConfigurationRoot::GetDebugView() support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-dotnet-extensions-configuration.