Comments (7)
Hi @viresh323,
Good morning.
Could you please check if the account used to access Systems Manager Parameter Store has sufficient permissions to fetch parameters. Refer Restricting access to Systems Manager parameters using IAM policies for more details. Also curious on why you are calling builder.Build()
before executing builder.AddSystemsManager()
. Kindly note that parameter names could be case sensitive.
Thanks,
Ashish
from aws-dotnet-extensions-configuration.
Hi @ashishdhingra ,
Sorry.. You can ignore builder.Build() - nothing relevant to this., forgot to remove that part while taking snapshot.
I do have the access to that resource, in case of authentication issue - I guess CreateHostBuilder function will throw error (image) but that doesn't happen to me if I give correct access keys. Is there anything that you want me to try out while debugging? I'm using net6.0 - does it have an impact?
from aws-dotnet-extensions-configuration.
Hi @ashishdhingra ,
Sorry.. You can ignore builder.Build() - nothing relevant to this., forgot to remove that part while taking snapshot.
I do have the access to that resource, in case of authentication issue - I guess CreateHostBuilder function will throw error (image) but that doesn't happen to me if I give correct access keys. Is there anything that you want me to try out while debugging? I'm using net6.0 - does it have an impact?
@viresh323 Please assess on how your credentials are configured locally. Kindly refer Credential and profile resolution for guidance. In your case, it is failing at the end Amazon EC2 instance metadata
after it is unable to find credentials at all locations (which would obviously fail in non-EC2 instance).
from aws-dotnet-extensions-configuration.
@ashishdhingra , I believe my credentials are correct and has appropriate permission. This is how I verified.
I used this profile to troubleshoot locally..
With same role and account - I'm able to view/add/update the params in the AWS Console Paramater Store. Also - verified the IAM Permission policies - it has Describe/GetParameter action for resource parameter/*
The screenshot (Amazon EC2 instance metadata) that I sent was just a demonstration of error when there is something wrong with the credentials. That isn't actual issue cause, I mocked it up.
Actual issue is not able to see "SystemManager" configuration in the list of Configuration.
from aws-dotnet-extensions-configuration.
SystemManager configuration is present while creating host
But not present at the point of getting configuration..
So I'm suspecting WebApplication.CreateBuilder()
from aws-dotnet-extensions-configuration.
@ashishdhingra I figured it out, looks like WebApplication.CreateBuilder() is creating new instance every time and doesn't carry over the SystemManager configuration.
Instead, I used IConfiguration instance to fetch the configuration
Thanks for taking a look. @ashishdhingra
from aws-dotnet-extensions-configuration.
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
from aws-dotnet-extensions-configuration.
Related Issues (20)
- "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
- Document how to use TOptions/binding with hierarchy
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.