Closed DedicatedManagers closed 5 years ago
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.
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?
Sign(IRequest request, ClientConfig clientConfig,RequestMetrics metrics, string awsAccessKeyId, string awsSecretAccessKey)
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.
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.
How would I go about implementing the credentials if I were to secure my elastic search via IAM (as in this video https://youtu.be/iunkVDfZZXQ ). We are using dotnet core 2.2