0
我爲node.js使用aws-sdk包,希望生成臨時憑證。爲什麼不使用aws-sdk生成臨時證書?
我:
AWS.Config.credentials = new AWS.Credentials 'myKey', 'mySecret'
console.log AWS.Config.credentials
AWS.config.credentials = new AWS.TemporaryCredentials()
# DurationSeconds: 1200
console.log '===='
console.log AWS.config.credentials
然而,當我退出了新的證書,它顯示undefined
爲accessKeyId
。我做錯了什麼嗎?