Open shapirus opened 10 months ago
I don't think Terraform allows provider plugins to print any useful info to the console, unless TF is run in debug mode:
TF_LOG=DEBUG terraform apply
Perhaps a compromise is for the kops provider to intercept the kops output and write it to a log file?!
There's probably a way, but it may work only on errors, I'm not sure. For example, with the aws
provider, when there's an error creating something in the cloud and AWS returns error 400 (e.g., resource already exists), there is an actual error message printed on the console. Not sure if it's possible to do that outside of the error context.
At this point, all pods are up and running, all containers are healthy, all nodes are healthy, but kops_cluster_updater is still not happy. Why? What is it waiting for? This is where the ability to make it show the actual kops logs would be very helpful.