如何通过无服务器框架为 Google Cloud 自定义部署存储桶名称?

How can I customize the deployment bucket name for Google Cloud via the Serverless Framework?

有没有办法通过 serverlessgcp 使用预定义的存储桶?

我尝试使用:

deploymentBucket:
    name: build-artifacts-kkesley

...但它会忽略它并创建自己的存储桶。

没有

您发布的是如何使用 AWS 对其进行自定义,但 Google 提供程序功能实际上是通过插件提供的,其过程与核心存储库不一致。

在部署到 Google 时设置的部署存储桶变量实际上是 deploymentBucketName(不像 AWS 那样是 deploymentBucket.name)并且它只根据自己的命名约定重用存储桶。

您可以深入研究代码 here