1 Answer
- Newest
- Most votes
- Most comments
0
You will need to setup a IAM Role and attach that role to the EC2 instance upon launch. You can follow this guide.
For an application that is built using the AWS SDK for .NET, when the application constructs a client object for an AWS service, the object searches for credentials from several potential sources. The order in which it searches is shown in Credential and profile resolution.
answered a year ago
I think I failed to mention that this is an on-prem server, and is not an EC2 instance.
Have you followed the Credential configuration guide for .NET? https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-config-creds.html#creds-file
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
I'm also having the same problem (also on-prem). My secrets code works on the server when I have it as a console application but when I put it in a .net core app hosted on IIS, it cannot access the credentials store. I see no one has answered your question correctly. Were you able to figure it out?