I am creating a new app that I want to run on my local IIS. I would expect it to pull my default credentials from %USER_PROFILE%/.aws/credentials but whenever I try to access an AWS resource, it says that my credentials are empty.
I'm guessing the credentials in my AWS Toolkit are unavailable because the app is running outside of IIS Express. I also tried adding appsettings to my web.config (see below) but that didn't work.
<appSettings>
<add key="AWSProfileName" value="default" />
<add key="AWSProfileLocation" value="%USERPROFILE%/.aws/credentials" />
</appSettings>
I also tried adding the AWS_SHARED_CREDENTIALS_FILE, AWS_PROFILE, and AWS_DEFAULT_REGION environment variables to my site via the IIS via the Configuration Editor, but no dice.
I was able to get it to work by adding the environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION to my web.config, but I don't really want to do that (for risk of a developers credentials being put into our git repo.)
Is there something that I'm missing?
My site in IIS:
My app pool in IIS:
The permissions on the directory that contains the app:


