Closed Murphycx94 closed 4 years ago
这啥情况啊?
const { STS } = require('aliyun-sdk') const config = { accessKeyId: 'LTAI4FsjoDxUvDWpWHFRjKXU', accessKeySecret: 'qP4wlNaSx5coUs0QVLzrr3jE2jZi8w', roleArn: 'dannybaba', tokenExpireTime: '60', policy: '' } function sts () { const client = new STS({ accessKeyId: config.accessKeyId, accessKeySecret: config.accessKeySecret }) client.assumeRole(config.RoleArn, config.policy, config.tokenExpireTime).then((res) => { console.log(res) }) }
包名 ali-oss
这啥情况啊?