Update output.tf, terraform.tf

This commit is contained in:
2022-09-25 13:59:23 +00:00
parent b091770982
commit 85a76db311
2 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,3 @@
resource "local_file" "kubeconfig" {
filename = "config"
content = base64decode(linode_lke_cluster.foobar.kubeconfig)
}
output "kubeconfig" {
value = linode_lke_cluster.foobar.kubeconfig
sensitive = true

View File

@@ -33,6 +33,11 @@ resource "linode_lke_cluster" "foobar" {
}
}
resource "local_file" "kubeconfig" {
filename = "config"
content = base64decode(linode_lke_cluster.foobar.kubeconfig)
}
provider "kubernetes" {
config_path = local_file.kubeconfig.filename
}