Skip to content

Commit

Permalink
feat: allow aws credentials to be provided in other ways
Browse files Browse the repository at this point in the history
  • Loading branch information
shioju committed Jun 4, 2021
1 parent 8f6f650 commit 40ef566
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This is a wallet or signer that can be used together with [Ethers.js](https://gi
npm i ethers-aws-kms-signer
```

You can provide the AWS Credentials using the various ways listed [here](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html) depending on how you are using this library. You can also explicitly specify them when invoking the `AwsKmsSigner` constructor as shown below.

```js
import { AwsKmsSigner } from "ethers-aws-kms-signer";

Expand Down
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { ethers } from "ethers";
import { getPublicKey, getEthereumAddress, requestKmsSignature, determineCorrectV } from "./util/aws-kms-utils";

export interface AwsKmsSignerCredentials {
accessKeyId: string;
secretAccessKey: string;
accessKeyId?: string;
secretAccessKey?: string;
sessionToken?: string;
region: string;
keyId: string;
}
Expand Down

0 comments on commit 40ef566

Please # to comment.