az-kv-configured-aws

1.0.1 • Public • Published

az-kv-configured-aws

Get a configured AWS library for a given role. Counts on entries in Azure Key Vault with <prefix>-key and <prefix>-secret. If the environment argument is set, it will look for <prefix>-key-<environment> and `-secret- insetad.

Usage

Install the package:

npm install az-kv-configured-aws

Then, in your app:

const awsFactory = require('az-kv-configured-aws').withPrefix('sample-prefix', 'my-vault-name')

module.exports = async function(...) {
    const AWS = await awsFactory
    const kinesis = new AWS.Kinesis()
    ...
}

Exports

withPrefix(
    roleKey, // e.g. 'sample-prefix'
    vaultName,
    environment, // e.g. process.env.NODE_ENV or 'production'
    awsRegion = 'us-east-1'
)

Readme

Keywords

none

Package Sidebar

Install

npm i az-kv-configured-aws

Weekly Downloads

3

Version

1.0.1

License

UNLICENSED

Unpacked Size

2.44 kB

Total Files

3

Last publish

Collaborators

  • ethanmc2