2.0.49 • Published 3 years ago
typescript-aws-kms-helper v2.0.49
Install
npm install typescript-aws-kms-helper@latest
Usage
Default - running in Lambda in your own account
const logger = new Logger(LogLevel.Trace);
const helper = new KMSHelper(logger);
const response = await helper.DecryptAsync('encryptedValue');
Running in separate account or not in Lambda
import * as KMS from '@aws-sdk/client-kms';
const logger = new Logger(LogLevel.Trace);
const options: KMS.KMSClientConfig = {
accessKeyId: '{access_key}',
secretAccessKey: '{secret_key}',
region: 'us-east-1',
};
const repository = new KMS.KMS(options);
const helper = new KMSHelper(logger, repository);
const response = await helper.DecryptAsync('encryptedValue');
Notes
If no options are supplied, will default to us-east-1
as the region
Development
Clone the latest and run
npm run prep
to install packages and prep the git hooks
2.0.49
3 years ago
2.0.48
3 years ago
2.0.47
4 years ago
2.0.46
4 years ago
2.0.45
4 years ago
2.0.44
4 years ago
2.0.42
4 years ago
2.0.43
4 years ago
2.0.32
4 years ago
2.0.41
4 years ago
1.0.196
4 years ago
2.0.18
4 years ago
2.0.17
4 years ago
2.0.2
4 years ago
1.0.174
5 years ago
1.0.161
5 years ago
1.0.134
5 years ago
1.0.113
5 years ago
1.0.99
5 years ago
1.0.84
5 years ago
1.0.68
5 years ago
1.0.46
5 years ago
1.0.44
5 years ago
1.0.31
5 years ago
1.0.30
5 years ago
1.0.19
5 years ago
1.0.17
5 years ago
1.0.9
5 years ago
1.0.22
5 years ago
1.0.11
5 years ago
1.0.20
5 years ago
1.0.12
5 years ago
1.0.5
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago