title: NoCredentialProviders: no valid providers in chain error in electron-updater with AWS S3
body: <p>I'm trying to implement autoupdate of my electron-react application using electron-updater and AWS S3 bucket. But getting error:</p>
  <pre><code>⨯ NoCredentialProviders: no valid providers in chain. Deprecated.
          For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  github.com/develar/app-builder/pkg/publisher.upload
          Y:/Documents/app-builder/pkg/publisher/s3.go:169
  github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1
          Y:/Documents/app-builder/pkg/publisher/s3.go:57
  github.com/alecthomas/kingpin.(*actionMixin).applyActions
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/actions.go:28
  github.com/alecthomas/kingpin.(*Application).applyActions
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:557
  github.com/alecthomas/kingpin.(*Application).execute
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:390
  github.com/alecthomas/kingpin.(*Application).Parse
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:222
  main.main
          Y:/Documents/app-builder/main.go:90
  runtime.main
          c:/go/src/runtime/proc.go:203
  runtime.goexit
          c:/go/src/runtime/asm_amd64.s:1373  
    ⨯ NoCredentialProviders: no valid providers in chain. Deprecated.
          For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  github.com/develar/app-builder/pkg/publisher.upload
          Y:/Documents/app-builder/pkg/publisher/s3.go:169
  github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1
          Y:/Documents/app-builder/pkg/publisher/s3.go:57
  github.com/alecthomas/kingpin.(*actionMixin).applyActions
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/actions.go:28
  github.com/alecthomas/kingpin.(*Application).applyActions
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:557
  github.com/alecthomas/kingpin.(*Application).execute
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:390
  github.com/alecthomas/kingpin.(*Application).Parse
          C:/Users/develar/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:222
  main.main
          Y:/Documents/app-builder/main.go:90
  runtime.main
          c:/go/src/runtime/proc.go:203
  runtime.goexit
          c:/go/src/runtime/asm_amd64.s:1373  
    ⨯ Cannot cleanup: 
  
  Error #1 --------------------------------------------------------------------------------
  Error: D:\directoryofmyapp\myappname\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
      at ChildProcess.&lt;anonymous&gt; (D:\directoryofmyapp\myappname\node_modules\builder-util\src\util.ts:243:14)
      at Object.onceWrapper (events.js:422:26)
      at ChildProcess.emit (events.js:315:20)
      at maybeClose (internal/child_process.js:1048:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
  
  Error #2 --------------------------------------------------------------------------------
  Error: D:\directoryofmyapp\myappname\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
      at ChildProcess.&lt;anonymous&gt; (D:\directoryofmyapp\myappname\node_modules\builder-util\src\util.ts:243:14)
      at Object.onceWrapper (events.js:422:26)
      at ChildProcess.emit (events.js:315:20)
      at maybeClose (internal/child_process.js:1048:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)  stackTrace=
  </code></pre>
  <p>Here is my package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;myappname&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;license&quot;: &quot;MIT&quot;,
    &quot;productName&quot;: &quot;myappname&quot;,
    &quot;author&quot;: &quot;Bakhrom&quot;,
    &quot;description&quot;: &quot;myappname&quot;,
    &quot;homepage&quot;: &quot;./&quot;,
    &quot;main&quot;: &quot;./public/electron.js&quot;,
    &quot;build&quot;: {
      &quot;appId&quot;: &quot;com.myappname.electron-app&quot;,
      &quot;files&quot;: [
        &quot;build/electron.js&quot;,
        &quot;build/.env&quot;,
        &quot;./~/.aws/credentials&quot;,
        &quot;~/.aws/credentials&quot;,
        &quot;./.env&quot;,
        &quot;.env&quot;
      ],
      &quot;directories&quot;: {
        &quot;buildResources&quot;: &quot;./public/**/*&quot;
      },
      &quot;win&quot;: {
        &quot;icon&quot;: &quot;./public/img/favicon.png&quot;
      },
      &quot;publish&quot;: {
        &quot;provider&quot;: &quot;s3&quot;,
        &quot;bucket&quot;: &quot;mybucketname&quot;,
        &quot;region&quot;: &quot;ap-southeast-1&quot;
      }
    },
    &quot;dependencies&quot;: {
      &quot;@fluentui/react&quot;: &quot;^7.146.0&quot;,
      &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^9.3.2&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^7.1.2&quot;
      &quot;electron-is-dev&quot;: &quot;^1.2.0&quot;,
      &quot;electron-pos-printer&quot;: &quot;^1.2.0&quot;,
      &quot;electron-updater&quot;: &quot;^4.3.5&quot;,
      ... other packages
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;node --expose-gc --max-old-space-size=1900 node_modules/react-scripts/scripts/build.js&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;dev&quot;: &quot;concurrently \&quot;npm start\&quot; \&quot;wait-on http://localhost:3000 &amp;&amp; electron .\&quot;&quot;,
      &quot;electron-build&quot;: &quot;npm run build &amp;&amp; electron-builder build&quot;,
      &quot;deploy&quot;: &quot;npm run build &amp;&amp; electron-builder build --win --publish always&quot;,
      &quot;postinstall&quot;: &quot;electron-builder install-app-deps&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: &quot;react-app&quot;
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;concurrently&quot;: &quot;^5.3.0&quot;,
      &quot;dotenv&quot;: &quot;^8.2.0&quot;,
      &quot;electron&quot;: &quot;^9.1.0&quot;,
      &quot;electron-builder&quot;: &quot;^22.9.1&quot;,
      &quot;electron-rebuild&quot;: &quot;^2.3.2&quot;,
      &quot;wait-on&quot;: &quot;^5.2.1&quot;
    }
  }
  </code></pre>
  <p>I'm running the command below:</p>
  <pre><code>&quot;deploy&quot;: &quot;npm run build &amp;&amp; electron-builder build --win --publish always&quot;
  </code></pre>
  <p>The bucket is public. I can't figure out what is going on? I also mentioned aws_access_key_id and aws_secret_access_key in environment variables and ~/.aws/credentials file. But no result.</p>