changed to token auth data source
parent
e4056f7f04
commit
b52f6495f5
18
terraform.tf
18
terraform.tf
|
|
@ -5,6 +5,10 @@ data "aws_eks_cluster" "xOps" {
|
||||||
name = "xOps"
|
name = "xOps"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data "aws_eks_cluster_auth" "example" {
|
||||||
|
name = "xOps"
|
||||||
|
}
|
||||||
|
|
||||||
terraform {
|
terraform {
|
||||||
|
|
||||||
backend "s3" {
|
backend "s3" {
|
||||||
|
|
@ -40,13 +44,9 @@ provider "aws" {
|
||||||
|
|
||||||
|
|
||||||
provider "helm" {
|
provider "helm" {
|
||||||
# kubernetes {
|
kubernetes {
|
||||||
# host = data.aws_eks_cluster.xOps.endpoint
|
host = data.aws_eks_cluster.xOps.endpoint
|
||||||
# cluster_ca_certificate = base64decode(data.aws_eks_cluster.xOps.certificate_authority[0].data)
|
cluster_ca_certificate = base64decode(data.aws_eks_cluster.xOps.certificate_authority[0].data)
|
||||||
# exec {
|
token = data.aws_eks_cluster_auth.example.token
|
||||||
# api_version = "client.authentication.k8s.io/v1beta1"
|
}
|
||||||
# args = ["eks", "get-token", "--cluster-name", data.aws_eks_cluster.xOps.name]
|
|
||||||
# command = "aws"
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue