-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to @mysten/kms, export aws inside that
- Loading branch information
1 parent
29d38ff
commit a350c91
Showing
14 changed files
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Sui KMS Signers | ||
|
||
This package is the source for finding exported KMS signers. | ||
|
||
## AWS KMS Signer | ||
|
||
You can use AWS KMS signer like the following: | ||
|
||
```typescript | ||
import { AwsKmsSigner } from "@mysten/kms/aws"; | ||
|
||
const prepareSigner = async () => { | ||
const { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, AWS_KMS_KEY_ID } = process.env; | ||
|
||
return AwsKmsSigner.fromCredentials(AWS_KMS_KEY_ID, { | ||
region: AWS_REGION, | ||
accessKeyId: AWS_ACCESS_KEY_ID, | ||
secretAccessKey: AWS_SECRET_ACCESS_KEY, | ||
}); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"private": true, | ||
"import": "../dist/esm/aws/index.js", | ||
"main": "../dist/cjs/aws/index.js", | ||
"sideEffects": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{ | ||
"name": "@mysten/aws-kms-signer", | ||
"name": "@mysten/kms", | ||
"version": "0.0.1", | ||
"description": "TODO: Write Description", | ||
"description": "A collection of KMS signers for various cloud providers", | ||
"license": "Apache-2.0", | ||
"author": "Mysten Labs <[email protected]>", | ||
"type": "commonjs", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
"./aws": { | ||
"import": "./dist/esm/aws/index.js", | ||
"require": "./dist/cjs/aws/index.js" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"CHANGELOG.md", | ||
"dist" | ||
"LICENSE", | ||
"README.md", | ||
"aws", | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf tsconfig.tsbuildinfo ./dist", | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import type { AwsClientOptions } from './aws-client.js'; | ||
import type { AwsKmsSignerOptions } from './aws-kms-signer.js'; | ||
import { AwsKmsSigner } from './aws-kms-signer.js'; | ||
|
||
export { AwsKmsSigner }; | ||
|
||
export type { AwsKmsSignerOptions, AwsClientOptions }; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.