Giter VIP home page Giter VIP logo

Comments (2)

bcuff avatar bcuff commented on June 12, 2024

When you run under IIS you are able to consume other AWS services using the AWSSDK but not Elasticsearch using this package?

The credential loading should be exactly the same as what other AWSSDK based client's use.

When running your application using IIS it's probably running as an IIS user which won't have access to your personal ~/.aws/* credentials.

from elasticsearch-net-aws.

justintoth avatar justintoth commented on June 12, 2024

Yeah AWS S3 is working fine. I'm running the app pool under my windows account "Justin", which is an Administrator, so it should have access to C:/Users/Justin/.aws/*. I ended up getting it to work by updating the web.config to the following:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments="exec &quot;C:\RPR2\Websites\MobileApi\bin\RealtorsPropertyResource.Rpr.MobileApi.dll&quot;" stdoutLogEnabled="false" hostingModel="InProcess">
        <environmentVariables>
          <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
		  <environmentVariable name="AWS_ACCESS_KEY_ID" value="{value}" />
		  <environmentVariable name="AWS_SECRET_ACCESS_KEY" value="{value}" />
        </environmentVariables>
      </aspNetCore>
    </system.webServer>
  </location>
</configuration>

I don't know why it doesn't use the .aws folder or appsettings.json in this scenario, it must be related to the magic it's doing in the web.config in order to run ASP.NET Core in IIS.

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.