Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ variable "role" {

variable "members" {
type = set(string)
description = "(Optional) Identities that will be granted the privilege in role. Each entry can have one of the following values: 'user:{emailid}', 'serviceAccount:{emailid}', 'group:{emailid}', 'domain:{domain}'."
description = "(Optional) Identities that will be granted the privilege in role. Each entry can have one of the following values: 'user:{emailid}', 'serviceAccount:{emailid}', 'group:{emailid}', 'domain:{domain}' or using a federated principal."
default = []

validation {
condition = alltrue([for m in var.members : can(regex("^(user|serviceAccount|group|domain|computed):(.+)", m))])
error_message = "The value must be a non-empty list of strings where each entry is a valid principal type identified with a prefix such as e.g., `user:`, `serviceAccount:`, `group:`, `domain:` or `computed`."
condition = alltrue([for m in var.members : can(regex("^(user|serviceAccount|group|domain|computed|principal|principalSet):(.+)", m))])
error_message = "The value must be a non-empty list of strings where each entry is a valid principal type identified with a prefix such as e.g., `user:`, `serviceAccount:`, `group:`, `domain:`, `computed:`, `principal:` or `principalSet:."
}
}

Expand Down