add terraform config for kubectl config file

This commit is contained in:
Nana Janashia
2020-12-20 14:31:29 +01:00
parent 6566e1b821
commit 165bd326cb
3 changed files with 35 additions and 8 deletions

View File

@@ -40,4 +40,10 @@ module "eks" {
asg_desired_capacity = 1
}
]
}
resource "local_file" "kube_config_file" {
content = module.eks.kubeconfig
filename = "kubeconfig.yaml"
file_permission = "400"
}