Skip to content

Commit 7351522

Browse files
authored
add depends_on to resource name outputs (#113)
1 parent 84b5119 commit 7351522

File tree

12 files changed

+12
-0
lines changed

12 files changed

+12
-0
lines changed

modules/audit_config/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
output "audit_log_config" {
1818
value = var.audit_log_config
1919
description = "Map of log type and exempted members to be added to service"
20+
depends_on = [google_project_iam_audit_config.project]
2021
}

modules/billing_accounts_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "billing_account_ids" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "Billing Accounts which received bindings."
20+
depends_on = [google_billing_account_iam_binding.billing_account_iam_authoritative, google_billing_account_iam_member.billing_account_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/folders_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "folders" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "Folders which received bindings."
20+
depends_on = [google_folder_iam_binding.folder_iam_authoritative, google_folder_iam_member.folder_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/kms_crypto_keys_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "kms_crypto_keys" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "KMS crypto keys which received bindings."
20+
depends_on = [google_kms_crypto_key_iam_binding.kms_crypto_key_iam_authoritative, google_kms_crypto_key_iam_member.kms_crypto_key_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/kms_key_rings_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "kms_key_rings" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "KMS key rings which received bindings."
20+
depends_on = [google_kms_key_ring_iam_binding.kms_key_ring_iam_authoritative, google_kms_key_ring_iam_member.kms_key_ring_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/organizations_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "organizations" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "Organizations which received bindings."
20+
depends_on = [google_organization_iam_binding.organization_iam_authoritative, google_organization_iam_member.organization_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/projects_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "projects" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "Projects wich received bindings."
20+
depends_on = [google_project_iam_binding.project_iam_authoritative, google_project_iam_member.project_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/pubsub_subscriptions_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "pubsub_subscriptions" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "PubSub Subscriptions which received bindings."
20+
depends_on = [google_pubsub_subscription_iam_binding.pubsub_subscription_iam_authoritative, google_pubsub_subscription_iam_member.pubsub_subscription_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/pubsub_topics_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "pubsub_topics" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "PubSub Topics which received for bindings."
20+
depends_on = [google_pubsub_topic_iam_binding.pubsub_topic_iam_authoritative, google_pubsub_topic_iam_member.pubsub_topic_iam_additive, ]
2021
}
2122

2223
output "roles" {

modules/service_accounts_iam/outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
output "service_accounts" {
1818
value = distinct(module.helper.bindings_by_member[*].name)
1919
description = "Service Accounts which received bindings."
20+
depends_on = [google_service_account_iam_binding.service_account_iam_authoritative, google_service_account_iam_member.service_account_iam_additive, ]
2021
}
2122

2223
output "roles" {

0 commit comments

Comments
 (0)