Skip to content

Commit

Permalink
fix: tempKey
Browse files Browse the repository at this point in the history
  • Loading branch information
dfounderliu committed Apr 9, 2020
1 parent 11a823f commit 2fe0067
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/serverless.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ class Express extends Component {
console.log(`Removing Tencent Webiste ...`)

// 获取腾讯云密钥信息
const credentials = this.credentials.tencent
if (!this.credentials.tencent.tmpSecrets) {
throw new Error('Please add SLS_QcsRole in your tencent account.')
}
const credentials = {
SecretId: this.credentials.tencent.tmpSecrets.TmpSecretId,
SecretKey: this.credentials.tencent.tmpSecrets.TmpSecretKey,
Token: this.credentials.tencent.tmpSecrets.Token
}

// 默认值
const region = inputs.region || 'ap-guangzhou'
Expand Down

0 comments on commit 2fe0067

Please sign in to comment.