» yandex_function_iam_binding

resource "yandex_function_iam_binding" "function-iam" {
  function_id = "your-function-id"
  role        = "serverless.functions.invoker"

  members = [
    "system:allUsers",
  ]
}

» Argument Reference

The following arguments are supported:

  • function_id - (Required) The Yandex Cloud Function ID to apply a binding to.

  • role - (Required) The role that should be applied. See roles

  • members - (Required) Identities that will be granted the privilege in role. Each entry can have one of the following values:

    • userAccount:{user_id}: A unique user ID that represents a specific Yandex account.
    • system:{allUsers|allAuthenticatedUsers}: see system groups