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:
+3
-3
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user