为什么我无法部署到 Cloud Functions?

Pau*_*lyP 1 google-cloud-platform terraform google-cloud-functions terraform-provider-gcp

我已经能够部署几个月了,现在今天早上我突然收到此错误。

\n
\xe2\x94\x82 Error: Error while updating cloudfunction configuration: Error waiting for Updating CloudFunctions Function: Error code 3, message: Build failed: curl: (22) The requested URL returned error: 404 \n\xe2\x94\x82 \n\xe2\x94\x82 gzip: stdin: unexpected end of file\n\xe2\x94\x82 tar: Child returned status 1\n\xe2\x94\x82 tar: Error is not recoverable: exiting now; Error ID: 637fe2a4\n\xe2\x94\x82 \n\xe2\x94\x82   with google_cloudfunctions_function.syncFiles,\n\xe2\x94\x82   on functions.tf line 396, in resource "google_cloudfunctions_function" "syncFiles":\n\xe2\x94\x82  396: resource "google_cloudfunctions_function" "syncFiles" {\n\xe2\x94\x82 \n
Run Code Online (Sandbox Code Playgroud)\n

这是地形配置。我们压缩该目录并将其交给云函数进行部署

\n
data "archive_file" "source-zip" {\n  type        = "zip"\n  source_dir  = "${path.root}/../dist/"\n  output_path = "${path.root}/../dist/files/${var.app_name}.zip"\n  excludes    = ["files/**"]\n}\n\nresource "google_storage_bucket_object" "deploy-zip" {\n  name       = "${var.app_name}/${var.app_name}-${data.archive_file.source-zip.output_md5}.zip"\n  bucket     = "${var.env_name}-deploy"\n  source     = "${path.root}/../dist/files/${var.app_name}.zip"\n  depends_on = [data.archive_file.source-zip]\n}\n\noutput "deploy_zip" {\n  value = google_storage_bucket_object.deploy-zip.name\n}\n\n
Run Code Online (Sandbox Code Playgroud)\n

什么可能导致此错误?

\n

这是内部问题吗?

\n

我在 Google 支持下开出了一张票,但还没有什么用处。

\n

dan*_*y L 6

请转到云构建,选择您的区域,查看历史记录/日志,这应该会告诉您失败的原因。

可能是包的问题。