reprovision IAM only on function replacement

This commit is contained in:
Wiktor Niesiobędzki
2026-03-30 13:52:02 +00:00
parent 0e9fd6bbc1
commit 17abe3e20b
2 changed files with 4 additions and 4 deletions

View File

@@ -118,6 +118,6 @@ resource "google_cloudfunctions_function_iam_binding" "default" {
role = lookup(local.ctx.custom_roles, each.key, each.key)
members = [for member in each.value : lookup(local.ctx.iam_principals, member, member)]
lifecycle {
replace_triggered_by = [google_cloudfunctions_function.function]
replace_triggered_by = [google_cloudfunctions_function.function.id]
}
}