feat: add support for SCC Custom Security Health Analytics module in … (#3372)

* feat: add support for SCC Custom Security Health Analytics module in organization, folder and project modules

* fix: update description and docs

---------

Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
Vannick Trinquier
2025-10-03 18:47:50 +07:00
committed by GitHub
parent 5fb76628f6
commit cfe2e21ce7
26 changed files with 966 additions and 68 deletions

View File

@@ -63,13 +63,18 @@ locals {
}
resource "google_logging_metric" "metrics" {
for_each = local.metrics
project = local.project.project_id
name = each.key
filter = each.value.filter
description = each.value.description
disabled = each.value.disabled
bucket_name = each.value.bucket_name
for_each = local.metrics
project = local.project.project_id
name = each.key
filter = each.value.filter
description = each.value.description
disabled = each.value.disabled
bucket_name = try(
# first try to check the context
var.context.logging_bucket_names[each.value.bucket_name],
# if nothing else, use the provided channel as is
each.value.bucket_name
)
value_extractor = each.value.value_extractor
label_extractors = each.value.label_extractors