Skip to content

Get configured AWS library with credentials from Azure Key Vault

Notifications You must be signed in to change notification settings

gopuff/az-kv-configured-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
)

About

Get configured AWS library with credentials from Azure Key Vault

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published