Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ data "aws_iam_policy_document" "assume_role" {
condition {
test = "StringLike"
variable = join(":", [var.iam_irsa_openid_connect_provider_url, "sub"])
values = [var.iam_irsa_service_account]
values = compact(concat([var.iam_irsa_service_account], var.iam_irsa_service_accounts))
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ variable "iam_irsa_service_account" {
description = "Kubernetes ServiceAccount to allow to access the Elastic Domain via IRSA"
}

variable "iam_irsa_service_accounts" {
type = list(string)
default = []
description = "Kubernetes ServiceAccounts to allow to access the Elastic Domain via IRSA"
}

variable "zone_awareness_enabled" {
type = bool
default = true
Expand Down