Rename "grant" to "iam" in sink variables

This commit is contained in:
Julio Castillo
2020-12-05 12:39:06 +01:00
parent a926214229
commit 1af70c748c
9 changed files with 18 additions and 39 deletions

View File

@@ -38,7 +38,7 @@ locals {
type => {
for name, sink in local.logging_sinks :
name => sink
if sink.grant && sink.type == type
if sink.iam && sink.type == type
}
}
folder = (
@@ -216,13 +216,6 @@ resource "google_pubsub_topic_iam_binding" "pubsub-sinks-binding" {
members = [google_logging_folder_sink.sink[each.key].writer_identity]
}
# resource "google_storage_bucket_iam_binding" "gcs-sinks-bindings" {
# for_each = local.sink_grants["gcs"]
# bucket = each.value.destination
# role = "roles/storage.objectCreator"
# members = [google_logging_folder_sink.sink[each.key].writer_identity]
# }
resource "google_logging_folder_exclusion" "logging-exclusion" {
for_each = coalesce(var.logging_exclusions, {})
name = each.key