feat: Allow empty prefix for project_factory buckets (#3575)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
Josh Myers
2025-12-10 16:41:08 +00:00
committed by GitHub
parent 13d19ca8eb
commit 5ab73b9f00

View File

@@ -36,11 +36,11 @@ locals {
labels = lookup(opts, "labels", {})
location = lookup(opts, "location", null)
managed_folders = lookup(opts, "managed_folders", {})
prefix = coalesce(
prefix = try(coalesce(
local.data_defaults.overrides.prefix,
try(v.prefix, null),
local.data_defaults.defaults.prefix
)
), null)
storage_class = lookup(
opts, "storage_class", "STANDARD"
)