serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.31k stars 182 forks source link

How can I override bucket? #536

Closed GiantappMan closed 4 years ago

GiantappMan commented 4 years ago

Description

sls --debug

error:
  {     
  error: {
    Code: 'BucketAlreadyOwnedByYou',
    Message: 'Your previous request to create the named bucket succeeded and you already own it.',       
    Resource: 'xxxx-1251120934.cos.ap-guangzhou.myqcloud.com',
    RequestId: 'NWRlZGUyMjdfMWZiZTk0MGFfYWI3OF8zZTdmNmI=',
    TraceId: 'OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0NzJmZTI0ZmJhYTZmZjYyNmU5ZGNlZDI5YjkyODkwYjNhN2MyMTYxN2NhOGE5YjMyYjE2MzI4NzljYTllNDc4N2Q='
  },
  statusCode: 409,
  headers: {
    'content-type': 'application/xml',
    'content-length': '540',
    connection: 'keep-alive',
    date: 'Mon, 09 Dec 2019 05:56:55 GMT',
    server: 'tencent-cos',
    'x-cos-request-id': 'NWRlZGUyMjdfMWZiZTk0MGFfYWI3OF8zZTdmNmI=',
    'x-cos-trace-id': 'OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0NzJmZTI0ZmJhYTZmZjYyNmU5ZGNlZDI5YjkyODkwYjNhN2MyMTYxN2NhOGE5YjMyYjE2MzI4NzljYTllNDc4N2Q='
  }
}

serverless.yml

my-test-site:
  component: "@serverless/tencent-website"
  inputs:
    region: ap-guangzhou
    bucketName: xxx
...

repro steps:

I deploy my code from pc A. then I deploy the same code from pc B. I enchanted this error in Tencent cloud serverless.

Is there any way can overwrite bucket?

medikoo commented 4 years ago

@DaZiYuan can you move this issue to https://github.com/serverless-components/tencent-website/ it belongs there

GiantappMan commented 4 years ago

ok , moved it to https://github.com/serverless-components/tencent-website/issues/2