mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-01 06:53:06 +02:00
feat: Add new output values for OIDC issuer URL and provider that are dual-stack compatible (#3120)
* feat: Add new output values for OIDC issuer URL and provider that support IPv4/IPv6 dualstack * chore: Revert addition of `dualstack_oidc_provider` * fix: Add check for `aws` partition since this is the only partition currently supported * fix: Revert partition conditional logic
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
locals {
|
||||
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)
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Cluster
|
||||
################################################################################
|
||||
@@ -52,6 +56,11 @@ output "cluster_oidc_issuer_url" {
|
||||
value = try(aws_eks_cluster.this[0].identity[0].oidc[0].issuer, null)
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
output "cluster_version" {
|
||||
description = "The Kubernetes version for the cluster"
|
||||
value = try(aws_eks_cluster.this[0].version, null)
|
||||
|
||||
Reference in New Issue
Block a user