Skip to content

Commit fd998ad

Browse files
committed
sls service and oss bucket name is global unique ,so their name should add region
1 parent ee783c8 commit fd998ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

provider/aliyunProvider.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ class AliyunProvider {
203203
}
204204

205205
getLogProjectName() {
206-
const service = this.serverless.service.service;
207-
return `sls-${this.key.aliyun_account_id}-logs`.replace(/_/g, '-');
206+
return `sls-${this.key.aliyun_account_id}-${this.options.region}-logs`.replace(/_/g, '-');
208207
}
209208

210209
getLogStoreName() {
@@ -213,7 +212,7 @@ class AliyunProvider {
213212
}
214213

215214
getDeploymentBucketName() {
216-
return `sls-${this.key.aliyun_account_id}`;
215+
return `sls-${this.key.aliyun_account_id}-${this.options.region}`;
217216
}
218217

219218
// If a function is going to be reused by multiple endpoints,

0 commit comments

Comments
 (0)