File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ data "aws_iam_policy_document" "assume_role" {
144144 condition {
145145 test = " StringLike"
146146 variable = join (" :" , [var . iam_irsa_openid_connect_provider_url , " sub" ])
147- values = [var . iam_irsa_service_account ]
147+ values = compact ( concat ( [var . iam_irsa_service_account ], var . iam_irsa_service_accounts ))
148148 }
149149 }
150150 }
Original file line number Diff line number Diff line change @@ -142,6 +142,12 @@ variable "iam_irsa_service_account" {
142142 description = " Kubernetes ServiceAccount to allow to access the Elastic Domain via IRSA"
143143}
144144
145+ variable "iam_irsa_service_accounts" {
146+ type = list (string )
147+ default = []
148+ description = " Kubernetes ServiceAccounts to allow to access the Elastic Domain via IRSA"
149+ }
150+
145151variable "zone_awareness_enabled" {
146152 type = bool
147153 default = true
You can’t perform that action at this time.
0 commit comments