@awboost/aws-vault-credentials
Load current AWS credentials from aws-vault.
Usage
import { S3Client } from '@aws-sdk/client-s3';
import { AwsVaultCredentials } from '@awboost/aws-vault-credentials';
const s3 = new S3Client({
crentials: AwsVaultCredentails.provide({
awsVaultPath: 'aws-vault',
durationSeconds: undefined,
guiPrompt: false,
mfaToken: undefined,
noSession: false,
profileName: 'your-profile',
prompt: undefined,
}),
});
guiPrompt
option
This will choose osascript
on darwin and wincredui
on win32. It is ignored on other platforms.