-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hi there,
I'm very likely missing something obvious by staring at this for too long (and I am new to using Vault and AWS), however I've got an issue with using this library I can't figure out. I'm able to successfully connect to Vault and read a secret, however after running my script, the console.log returns the values I need, but I'm then left with a blinking cursor to suggest further input is required. The only way for me to then exit is to hit CTRL + C:
const vaultClient = VaultClient.boot('main', {
api: { url: 'redacted' },
auth: {
type: 'iam',
config: { role: 'redacted' }
},
});
vaultClient.read('secret/path').then(result => {
return result;
});
.catch(e => console.error(e));
I've tried using return instead of console.log, but I can't seem to get it working. All I need is to get the value from __data out of the response returned. Any help on this likely very-stupid-on-my-part issue would be much appreciated!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels