From 08fc205197322607c974bc08fe3f1293bb90e56c Mon Sep 17 00:00:00 2001 From: Anthony Zawacki Date: Wed, 13 Sep 2023 09:45:30 -0400 Subject: [PATCH] Added cluster_oidc_issuer_url from tfmod-eks as input to avoid needing to look up the url from aws_eks_cluster --- aws_data.tf | 2 +- variables.tf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/aws_data.tf b/aws_data.tf index 80f71e7..1e41f1d 100644 --- a/aws_data.tf +++ b/aws_data.tf @@ -6,7 +6,7 @@ data "aws_arn" "current" { } data "aws_iam_openid_connect_provider" "openid" { - url = data.aws_eks_cluster.cluster.identity[0].oidc[0].issuer + url = var.cluster_oidc_issuer_url } diff --git a/variables.tf b/variables.tf index e196574..934bae6 100644 --- a/variables.tf +++ b/variables.tf @@ -26,6 +26,11 @@ variable "create_namespace" { default = "true" } +variable "cluster_oidc_issuer_url" { + description = "The URL in the EKS cluster for the OpenID Connect identity provider. This is the full URL including https://" + type = string +} + variable "rwo_storage_class" { description = "Specify the storage class for read/write/once persistent volumes." type = string