Package Exports
- vault-auth-aws
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vault-auth-aws) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vault-auth-aws
a module for authenticate against Vault server by HashiCorp when running as AWS service such as Lambda using aws STS, Vault needs to be already configured to accept login attempts using this method.
install
npm install vault-auth-aws
Login
const vaultAuthClient = require('vault-auth-aws'); let vaultClient = new vaultAwsAuth({host: 'vault.example.com'}); vaultClient.authenticate() .then((sucess) => { // code here }) .catch((fail) => { // error here });