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