Open dsputnikk opened 6 months ago
'Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!'
Describe the bug
I have cut my teeth on Tanzu and I want to now automate provisioning of clusters via TMC's terraform provider. I understand how to create Terraform for a given resource, and I also understand the basics of Terraform importing.
I can successfully import a cluster I create manually thru TMC, but I have several "legacy" clusters that were attached manually.
This doc
.. specifically states that the import command is compromised of mgmt-cluster-name/provisioner_name/cluster_name.
The cluster I imported successfully which I provisioned thru TMC as a test is
supervisor-name/vsphere-namespace/terraform-demo-cluster-1
terraform import tanzu-mission-control_tanzu_kubernetes_cluster.terraform-test-1 mgmt-supervisor/tanzu-simcheck/terraform-test-1
<--- SuccessThe clusters I've previously manually attached display (in the UI)
mgmt-cluster-name = 'attached'
andprovisioner_name = 'attached'
.tkg-attached-cluster is an example of a cluster I've previously attached and has these displayed in the UI:
terraform import tanzu-mission-control_tanzu_kubernetes_cluster.attach_cluster_without_apply attached/attached/tkg-attached-cluster
<--- FailsResults in:
tkg-attached-cluster definitely exists, I see it in the TMC Console.
Reproduction steps
Expected behavior
I expect a successful import like in the first example
Additional context
Importing a cluster from TMC is clearly documented/thought about, but is importing previously attached clusters not supported?
I would prefer not to have to reroll the clusters in order to bring them under Terraform control.