File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -440,6 +440,7 @@ locals {
440440 create_oidc_provider = local. create && var. enable_irsa && ! local. create_outposts_local_cluster
441441
442442 oidc_root_ca_thumbprint = local. create_oidc_provider && var. include_oidc_root_ca_thumbprint ? [data . tls_certificate . this [0 ]. certificates [0 ]. sha1_fingerprint ] : []
443+ oidc_thumprint_list = concat (local. oidc_root_ca_thumbprint , var. custom_oidc_thumbprints )
443444}
444445
445446data "tls_certificate" "this" {
@@ -454,7 +455,7 @@ resource "aws_iam_openid_connect_provider" "oidc_provider" {
454455 count = local. create_oidc_provider ? 1 : 0
455456
456457 client_id_list = distinct (compact (concat ([" sts.amazonaws.com" ], var. openid_connect_audiences )))
457- thumbprint_list = concat (local. oidc_root_ca_thumbprint , var . custom_oidc_thumbprints )
458+ thumbprint_list = length (local. oidc_thumprint_list ) == 0 ? null : local . oidc_thumprint_list
458459 url = aws_eks_cluster. this [0 ]. identity [0 ]. oidc [0 ]. issuer
459460
460461 tags = merge (
You can’t perform that action at this time.
0 commit comments