You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting below error when trying archive and upload google cloud storage.
Failed to read source file "data.archive_file.main.output_path". Cannot compute md5 hash for it.: timestamp=2021-07-07T15:28:12.440Z
2021-07-07T15:28:12.442Z [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_storage_bucket_object.archive, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .detect_md5hash: planned value cty.StringVal("different hash") for a non-computed attribute
data "archive_file" "main" {
type = "zip"
source_dir = pathexpand("../function/ce-analytics-npd-trainer")
output_path = pathexpand("/tmp/trainer-0.1.zip")
}
Hi
I am getting below error when trying archive and upload google cloud storage.
Failed to read source file "data.archive_file.main.output_path". Cannot compute md5 hash for it.: timestamp=2021-07-07T15:28:12.440Z
2021-07-07T15:28:12.442Z [WARN] Provider "registry.terraform.io/hashicorp/google" produced an invalid plan for google_storage_bucket_object.archive, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .detect_md5hash: planned value cty.StringVal("different hash") for a non-computed attribute
data "archive_file" "main" {
type = "zip"
source_dir = pathexpand("../function/ce-analytics-npd-trainer")
output_path = pathexpand("/tmp/trainer-0.1.zip")
}
resource "google_storage_bucket_object" "archive" {
name = "${data.archive_file.main.output_md5}-${basename(data.archive_file.main.output_path)}"
bucket = google_storage_bucket.cloud_functions.name
source = "data.archive_file.main.output_path"
content_disposition = "attachment"
content_encoding = "gzip"
content_type = "application/zip"
}
The text was updated successfully, but these errors were encountered: