1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

fix: Correct logic to try to use module created IAM role before falli… (#3433)

This commit is contained in:
Bryant Biggs
2025-07-24 09:31:24 -05:00
committed by GitHub
parent b7eabbd384
commit 97d4ebbe68
8 changed files with 17 additions and 20 deletions
+3 -3
View File
@@ -1,6 +1,5 @@
locals {
# https://github.com/aws/containers-roadmap/issues/2038#issuecomment-2278450601
dualstack_oidc_issuer_url = try(replace(replace(aws_eks_cluster.this[0].identity[0].oidc[0].issuer, "https://oidc.eks.", "https://oidc-eks."), ".amazonaws.com/", ".api.aws/"), null)
}
################################################################################
@@ -59,7 +58,8 @@ output "cluster_oidc_issuer_url" {
output "cluster_dualstack_oidc_issuer_url" {
description = "Dual-stack compatible URL on the EKS cluster for the OpenID Connect identity provider"
value = local.dualstack_oidc_issuer_url
# https://github.com/aws/containers-roadmap/issues/2038#issuecomment-2278450601
value = try(replace(replace(aws_eks_cluster.this[0].identity[0].oidc[0].issuer, "https://oidc.eks.", "https://oidc-eks."), ".amazonaws.com/", ".api.aws/"), null)
}
output "cluster_version" {