assumer
v0.2.1
Published
Assume AWS IAM roles between Control account and Target accounts
Downloads
5
Maintainers
Readme
assumer-js
A JavaScript library for assuming AWS IAM roles between accounts.
Install
npm install -S assumer
Usage
const assumer = require('assumer');
const data = {
controlAccount: '123456789012',
controlRole: 'control/role',
targetAccount: '111111111111',
targetRole: 'target/role',
username: 'username',
mfaToken: '123456'
}
assumer(data).then(creds => console.log(creds))
// {AccessKeyId: ASIA..., SecretAccessKey: ..., SessionToken: ...}
TODO
- [ ] Add tests