Allow configuring data access logs from org/folder/project schemas (#3516)

* modules and FAST support

* module tests

* fast stage 0 dataset

* tfdoc
This commit is contained in:
Ludovico Magnocavallo
2025-11-10 11:19:21 +01:00
committed by GitHub
parent 7e32058010
commit ba77c6170c
40 changed files with 678 additions and 393 deletions

View File

@@ -59,6 +59,7 @@ locals {
try(v.labels, null),
local.data_defaults.defaults.labels
)
logging_data_access = try(v.data_access_logs, {})
metric_scopes = coalesce( # type: list(string)
try(v.metric_scopes, null),
local.data_defaults.defaults.metric_scopes
@@ -175,11 +176,6 @@ locals {
: local.data_defaults.defaults.vpc_sc
)
)
logging_data_access = coalesce( # type: map(object({...}))
local.data_defaults.overrides.logging_data_access,
try(v.logging_data_access, null),
local.data_defaults.defaults.logging_data_access
)
quotas = try(v.quotas, {})
})
}
@@ -202,10 +198,9 @@ locals {
logging = try(local._data_defaults.defaults.locations.logging, null)
storage = try(local._data_defaults.defaults.locations.storage, null)
}
logging_data_access = {}
metric_scopes = []
parent = null
prefix = null
metric_scopes = []
parent = null
prefix = null
project_reuse = merge(
{
use_data_source = true
@@ -257,7 +252,6 @@ locals {
logging = try(local._data_defaults.overrides.locations.logging, null)
storage = try(local._data_defaults.overrides.locations.storage, null)
}
logging_data_access = null
parent = null
prefix = null
service_encryption_key_ids = null