jamesmbourne / aws4-axios

Axios request interceptor for signing requests with AWSv4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default credentials provider does not fall back to process.env as the documentation states

lagnat opened this issue · comments

You can also pass AWS credentials in explicitly (otherwise taken from process.env)

  } else {
    credentialsProvider = new SimpleCredentialsProvider(credentials);
  }

Assuming this should be:

  } else {
    credentialsProvider = new SimpleCredentialsProvider({
        accessKeyId: process.env.AWS_ACCESS_KEY_ID,
        ...
    });
  }

My apologies.. that does happen but later in the code.