Merge pull request #372 from terraform-google-modules/ludo-issue-371
Depend log sinks from IAM roles
This commit is contained in:
commit
fb88a6dc20
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue