Rename "grant" to "iam" in sink variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user