Wondering what’s next for npm?Check out our public roadmap! »

    typescript-aws-kms-helper
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.44 • Public • Published

    typescript-aws-kms-helper

    Typescript helper functions for AWS KMS service

    CI/CD

    NPM Version Downloads

    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

    Install

    npm i typescript-aws-kms-helper

    DownloadsWeekly Downloads

    87

    Version

    2.0.44

    License

    MIT

    Unpacked Size

    20.5 kB

    Total Files

    21

    Last publish

    Collaborators

    • avatar