I ran into the same problem today, the solution for me was to use -raw (terraform 0.15.4 at least):
terraform output -raw kubeconfig > ~/.kube/config
I ran into the same problem today, the solution for me was to use -raw (terraform 0.15.4 at least):
terraform output -raw kubeconfig > ~/.kube/config