depend log sinks from IAM roles, fixes #371
This commit is contained in:
@@ -213,6 +213,10 @@ resource "google_logging_folder_sink" "sink" {
|
||||
filter = exclusion.value
|
||||
}
|
||||
}
|
||||
|
||||
depends_on = [
|
||||
google_folder_iam_binding.authoritative
|
||||
]
|
||||
}
|
||||
|
||||
resource "google_storage_bucket_iam_member" "gcs-sinks-binding" {
|
||||
|
||||
@@ -297,6 +297,11 @@ resource "google_logging_organization_sink" "sink" {
|
||||
filter = exclusion.value
|
||||
}
|
||||
}
|
||||
depends_on = [
|
||||
google_organization_iam_binding.authoritative,
|
||||
google_organization_iam_member.additive,
|
||||
google_organization_iam_policy.authoritative,
|
||||
]
|
||||
}
|
||||
|
||||
resource "google_storage_bucket_iam_member" "gcs-sinks-binding" {
|
||||
|
||||
@@ -299,6 +299,11 @@ resource "google_logging_project_sink" "sink" {
|
||||
filter = exclusion.value
|
||||
}
|
||||
}
|
||||
|
||||
depends_on = [
|
||||
google_project_iam_binding.authoritative,
|
||||
google_project_iam_member.additive
|
||||
]
|
||||
}
|
||||
|
||||
resource "google_storage_bucket_iam_member" "gcs-sinks-binding" {
|
||||
|
||||
Reference in New Issue
Block a user