bumpy-summer-9075
04/20/2021, 12:40 AMprovider "kubernetes" {
load_config_file = "false"
host = data.aws_eks_cluster.cluster.endpoint
token = data.aws_eks_cluster_auth.cluster.token
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
}
From what I can see from the documentation, I need to provide a kubeconfig, which is not really doable since the kubeconfig that is given by terraform's eks module requires aws-iam-authenticator
billowy-army-68599
04/20/2021, 12:43 AMaws-iam-authenticator
is (I believe) deprecated. You can build a Pulumi provider from our EKS module pretty easily - which language SDK are you uisng?bumpy-summer-9075
04/20/2021, 12:49 AMbillowy-army-68599
04/20/2021, 12:49 AMbumpy-summer-9075
04/20/2021, 12:49 AMbillowy-army-68599
04/20/2021, 12:50 AMkubeconfig
you want to use?bumpy-summer-9075
04/20/2021, 12:51 AMkubeconfig
output from that Terraform module but I don't even use that within Terraform (I used what I posted in the initial message) in the TF Kubernetes providerbillowy-army-68599
04/20/2021, 12:54 AMaws eks update-kubeconfig --name <your cluster name> --kubeconfig /tmp/kube
which will generate you a kubeconfig
you can use pulumi-terraform to grab the outputs and build the provider manually like you do in terraformbumpy-summer-9075
04/20/2021, 12:55 AMyou can use pulumi-terraform to grab the outputs and build the provider manually like you do in terraformThis is exactly what I would like to do
token
, the Pulumi one does not, so I don't know if this is doable at this timebillowy-army-68599
04/20/2021, 12:56 AMbumpy-summer-9075
04/20/2021, 12:59 AMbillowy-army-68599
04/20/2021, 1:01 AMaws eks get-kubeconfig
it'll get you a valid kubernetes kubeconfig which you can pass to Pulumi, I would highly recommend that approachbumpy-summer-9075
04/20/2021, 1:05 AMaws eks update-kubeconfig
requires kubectl
)
Cheers 🙂