I was trying to convert the metrics-server YAML (https://github.com/kubernetes-sigs/metrics-server/tree/v0.4.2) to terraform code. While doing so k2tf produced a valid looking TF file but produced one resource with an invalid resource name (resource "kubernetes_api_service" "v_1_beta_1__metrics_k_8_s.io" { … }) due to it containing a .io at the end of the name. The dot is apparently not permitted in TF resource names.
I was trying to convert the metrics-server YAML (https://github.com/kubernetes-sigs/metrics-server/tree/v0.4.2) to terraform code. While doing so k2tf produced a valid looking TF file but produced one resource with an invalid resource name (
resource "kubernetes_api_service" "v_1_beta_1__metrics_k_8_s.io" { … }
) due to it containing a.io
at the end of the name. The dot is apparently not permitted in TF resource names.The YAMl (sub) document leading to this is this:
Manually fixing the terraform resource name up did solve the issue but I think there is still a bug within k2tf somewhere.