strip bucket name from bundle URI (#2362)
This commit is contained in:
committed by
GitHub
parent
fa00deb747
commit
d1f7210fa8
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user