Skip to content

Commit

Permalink
fix: use token in provider.tf file
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed Sep 11, 2023
1 parent 00db529 commit bffe8f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _examples/basic/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ provider "aws" {
provider "kubernetes" {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.eks_cluster[0].token
token = join("", data.aws_eks_cluster_auth.eks_cluster.*.token)
}

provider "helm" {
kubernetes {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.eks_cluster[0].token
token = join("", data.aws_eks_cluster_auth.eks_cluster.*.token)
}
}

provider "kubectl" {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
token = data.aws_eks_cluster_auth.eks_cluster[0].token
token = join("", data.aws_eks_cluster_auth.eks_cluster.*.token)
}

data "aws_eks_cluster_auth" "eks_cluster" {
Expand Down

0 comments on commit bffe8f7

Please sign in to comment.