We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a823f commit 2fe0067Copy full SHA for 2fe0067
src/serverless.js
@@ -144,7 +144,14 @@ class Express extends Component {
144
console.log(`Removing Tencent Webiste ...`)
145
146
// 获取腾讯云密钥信息
147
- const credentials = this.credentials.tencent
+ if (!this.credentials.tencent.tmpSecrets) {
148
+ throw new Error('Please add SLS_QcsRole in your tencent account.')
149
+ }
150
+ const credentials = {
151
+ SecretId: this.credentials.tencent.tmpSecrets.TmpSecretId,
152
+ SecretKey: this.credentials.tencent.tmpSecrets.TmpSecretKey,
153
+ Token: this.credentials.tencent.tmpSecrets.Token
154
155
156
// 默认值
157
const region = inputs.region || 'ap-guangzhou'
0 commit comments