Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Allow to retrieve authentication data for cluster #25

Open
baurmatt opened this issue Sep 22, 2020 · 0 comments
Open

Allow to retrieve authentication data for cluster #25

baurmatt opened this issue Sep 22, 2020 · 0 comments

Comments

@baurmatt
Copy link

baurmatt commented Sep 22, 2020

We'd like to work with the cluster created by this provider by leveraging other k8s specific Terraform providers like kubernetes/helm/helmfile/...

Please implement a solution which allows something like this:

Data Sources:

data "aws_eks_cluster" "cluster" {
  name = module.my-cluster.cluster_id
}

data "aws_eks_cluster_auth" "cluster" {
  name = module.my-cluster.cluster_id
}

provider "kubernetes" {
  host                   = data.aws_eks_cluster.cluster.endpoint
  cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
  token                  = data.aws_eks_cluster_auth.cluster.token
  load_config_file       = false
  version                = "~> 1.9"
}

Cluster Sources Attributes:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant