npm install typescript-aws-kms-helper@latest
const logger = new Logger(LogLevel.Trace);
const helper = new KMSHelper(logger);
const response = await helper.DecryptAsync('encryptedValue');
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');
If no options are supplied, will default to us-east-1
as the region
Clone the latest and run
npm run prep
to install packages and prep the git hooks