Giter VIP home page Giter VIP logo

Comments (4)

bcuff avatar bcuff commented on June 11, 2024

If you supply credentials to your application in any of the standard ways (ec2 instance profile role, environment variables, or aws cli profile) this library should pick up those credentials and use them automatically.

from elasticsearch-net-aws.

DedicatedManagers avatar DedicatedManagers commented on June 11, 2024

Thanks for the reply!

I'm new to dotnet & C#, so I'd greatly appreciate if you could point me in the direction how to implement the ec2 instance profile role credentials in dotnet.

Ist this the right direction?
https://docs.aws.amazon.com/sdk-for-net/v2/developer-guide/net-dg-config-creds.html

Also, Will it pick up AWS4Signer? Or is this a function to add a header to a request that has the right tokens/credentials?

https://github.com/aws/aws-sdk-net/blob/6c3be79bdafd5bfff1ab0bf5fec17abc66c7b516/sdk/src/Core/Amazon.Runtime/Internal/Auth/AWS4Signer.cs

Sign(IRequest request, ClientConfig clientConfig,RequestMetrics metrics, string awsAccessKeyId, string awsSecretAccessKey)

from elasticsearch-net-aws.

bcuff avatar bcuff commented on June 11, 2024

If you are running your code on an EC2 instance you can assign an IAM instance profile to that instance. Then the client will automatically pick up credenetials from there. If you're running on lambda the situation is similar. No need to configure credentials in both of those cases. You only need to specify the region.

from elasticsearch-net-aws.

bcuff avatar bcuff commented on June 11, 2024

I'm going to close this since I haven't heard back from you. If you still have questions feel free to re-open the issue.

from elasticsearch-net-aws.

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.