strip bucket name from bundle URI (#2362)

This commit is contained in:
Ludovico Magnocavallo
2024-06-14 14:31:01 +02:00
committed by GitHub
parent fa00deb747
commit d1f7210fa8
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ resource "google_cloudfunctions2_function" "function" {
bucket = local.bucket
object = (
local.bundle_type == "gcs"
? var.bundle_config.path
? replace(var.bundle_config.path, "/^gs:\\/\\/[^\\/]+\\//", "")
: google_storage_bucket_object.bundle[0].name
)
}