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

Commit

Permalink
Fix kubeconfig file permissions for AKS (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava authored Nov 26, 2020
1 parent 789ec27 commit f9bb638
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/terraform/aks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ resource "azurerm_kubernetes_cluster" "default" {
}

resource "local_file" "kubeconfigs" {
count = var.cluster_count
content = azurerm_kubernetes_cluster.default[count.index].kube_config_raw
filename = pathexpand("~/.kube/consul-k8s-${random_id.suffix[count.index].dec}")
}
count = var.cluster_count
content = azurerm_kubernetes_cluster.default[count.index].kube_config_raw
filename = pathexpand("~/.kube/consul-k8s-${random_id.suffix[count.index].dec}")
file_permission = "0600"
}

0 comments on commit f9bb638

Please sign in to comment.