Giter Site home page Giter Site logo

Comments (7)

ashishdhingra avatar ashishdhingra commented on August 17, 2024

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.

viresh323 avatar viresh323 commented on August 17, 2024

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?
image

from aws-dotnet-extensions-configuration.

ashishdhingra avatar ashishdhingra commented on August 17, 2024

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? image

@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.

viresh323 avatar viresh323 commented on August 17, 2024

@ashishdhingra , I believe my credentials are correct and has appropriate permission. This is how I verified.

.credentials :
image

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.
image

from aws-dotnet-extensions-configuration.

viresh323 avatar viresh323 commented on August 17, 2024

SystemManager configuration is present while creating host

image

But not present at the point of getting configuration..

image

So I'm suspecting WebApplication.CreateBuilder()

from aws-dotnet-extensions-configuration.

viresh323 avatar viresh323 commented on August 17, 2024

@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.

github-actions avatar github-actions commented on August 17, 2024

⚠️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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.