Skip to content

Commit

Permalink
feat: limit replace_triggered_by to changed subscription (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
apenen authored Jul 22, 2024
1 parent aa8b5a7 commit deb704e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ resource "google_pubsub_subscription_iam_member" "pull_subscription_binding" {
]

lifecycle {
replace_triggered_by = [google_pubsub_subscription.pull_subscriptions]
replace_triggered_by = [google_pubsub_subscription.pull_subscriptions[each.key]]
}
}

Expand All @@ -126,7 +126,7 @@ resource "google_pubsub_subscription_iam_member" "push_subscription_binding" {
]

lifecycle {
replace_triggered_by = [google_pubsub_subscription.push_subscriptions]
replace_triggered_by = [google_pubsub_subscription.push_subscriptions[each.key]]
}
}

Expand Down Expand Up @@ -471,7 +471,7 @@ resource "google_pubsub_subscription_iam_member" "pull_subscription_sa_binding_s
]

lifecycle {
replace_triggered_by = [google_pubsub_subscription.pull_subscriptions]
replace_triggered_by = [google_pubsub_subscription.pull_subscriptions[each.key]]
}
}

Expand All @@ -487,6 +487,6 @@ resource "google_pubsub_subscription_iam_member" "pull_subscription_sa_binding_v
]

lifecycle {
replace_triggered_by = [google_pubsub_subscription.pull_subscriptions]
replace_triggered_by = [google_pubsub_subscription.pull_subscriptions[each.key]]
}
}

0 comments on commit deb704e

Please sign in to comment.