Update logging_data_access type (#2816)

* Update logging_data_access variables to use types

* Fix dependencies

* fix schema

* Add missing comma

* Fix try
This commit is contained in:
Julio Castillo
2025-01-14 17:00:35 +01:00
committed by GitHub
parent 7eff7b19dc
commit c59470a4fb
19 changed files with 121 additions and 108 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2024 Google LLC
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,11 +50,10 @@ resource "google_project_iam_audit_config" "default" {
project = local.project.project_id
service = each.key
dynamic "audit_log_config" {
for_each = each.value
iterator = config
for_each = { for k, v in each.value : k => v if v != null }
content {
log_type = config.key
exempted_members = config.value
log_type = audit_log_config.key
exempted_members = audit_log_config.value.exempted_members
}
}
}