Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 将功能连接到空云存储桶_Google Cloud Platform_Google Cloud Functions_Google Deployment Manager - Fatal编程技术网

Google cloud platform 将功能连接到空云存储桶

Google cloud platform 将功能连接到空云存储桶,google-cloud-platform,google-cloud-functions,google-deployment-manager,Google Cloud Platform,Google Cloud Functions,Google Deployment Manager,我试图使用GitHub上Google deployment manager示例中的以下信息 空桶\u cf.yaml imports: - path: empty_bucket_cf.jinja resources: - name: my-function type: empty_bucket_cf.jinja properties: project: <PROJECT_NAME> region: europe-west1 entryPoin

我试图使用GitHub上Google deployment manager示例中的以下信息

空桶\u cf.yaml

imports:
- path: empty_bucket_cf.jinja

resources:
- name: my-function
  type: empty_bucket_cf.jinja
  properties:
     project: <PROJECT_NAME>
     region: europe-west1
     entryPoint: handler
     runtime: nodejs8
     bucket: lskflsjfsj
在使用部署管理器进行部署时,我收到如下错误消息:

testsetup has resource warnings
my-function: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Failed to retrieve function source code"}
Deployment properties
你知道为什么这不是谷歌云平台GitHub存储库中的bug吗。空桶配置的目的不就是创建带有空桶的CFs吗

注意:有时它也会成功执行。


我不知道谷歌发布这个例子时的想法,但它不起作用。如果您的存储桶为空,则该函数没有代码。但是,在部署函数时,会编译/解析代码,检查入口点(存在,正确的签名,…),并将其部署到环境中


在这里,没有入口点,没有要编译/解析的代码,因此没有部署->这是正常的,但是这个例子令人不安。你可以在回购协议上发行债券。

奇怪的是,有时成功发行,有时失败发行。我添加了一个截图,上面说它成功完成了。
testsetup has resource warnings
my-function: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Failed to retrieve function source code"}
Deployment properties