egg-oss-sts
v1.0.0
Published
Egg's plugin for STS (Security Token Service) supported.
Downloads
1
Readme
egg-oss-sts
Egg's plugin for STS (Security Token Service) supported.
Usage
config/plugin.js
exports.sts = {
enabled: true,
package: 'egg-oss-sts'
}
config/config.default.js
exports.sts = {
client: {
accessKeyId: 'your access key id',
accessKeySecret: 'your access key secret'
}
}
app/service/xxxx.js
const token = yield app.sts.assumeRole(
'<role-arn>',
'<policy>',
'<expire>',
'<session-name>'
)