Skip to content

Commit

Permalink
[DEV-12767] Undo: revert to using cluster token from data.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanOkolita committed Mar 10, 2025
1 parent e1b3c26 commit 41ec207
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -451,25 +451,25 @@ data "aws_eks_cluster_auth" "local" {
provider "kubernetes" {
host = module.cluster.kubernetes_host
cluster_ca_certificate = module.cluster.kubernetes_cluster_ca_certificate
token = data.aws_eks_cluster_auth.local.token
#token = data.aws_eks_cluster_auth.local.token
#token = module.cluster.kubernetes_token
# exec {
# api_version = "client.authentication.k8s.io/v1beta1"
# args = ["eks", "get-token", "--cluster-name", var.label]
# command = "aws"
# }
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", var.label]
command = "aws"
}
}

provider "kubectl" {
host = module.cluster.kubernetes_host
cluster_ca_certificate = module.cluster.kubernetes_cluster_ca_certificate
token = data.aws_eks_cluster_auth.local.token
#token = data.aws_eks_cluster_auth.local.token
load_config_file = false
# exec {
# api_version = "client.authentication.k8s.io/v1beta1"
# args = ["eks", "get-token", "--cluster-name", var.label]
# command = "aws"
# }
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", var.label]
command = "aws"
}
}


Expand Down

0 comments on commit 41ec207

Please sign in to comment.