# Import Vm Config with Terraform

```
 $terraform import module.s130wafe000.vsphere_virtual_machine.vm_win "/NLAM0C0/vm/S130/s130wafe000.win.tech.altenar.net"
```

**module.s130wafe000.vsphere\_virtual\_machine.vm\_win**

* module - because it’s module
* s130wafe000 - module name
* vsphere\_virtual\_machine - resource type as it is in provider
* vm\_win - source name which used to create vm

#### **use GOVC to find resources in vmware clusters** <a href="#markdown-header-use-govc-to-find-resources-in-vmware-clusters" id="markdown-header-use-govc-to-find-resources-in-vmware-clusters"></a>

**export variables**

* export GOVC\_USERNAME=<username@vsphere.local>
* export GOVC\_PASSWORD=SuperSecurePassword123
* export GOVC\_INSECURE=true

```
$ govc find vm -name s130wafe000.win.tech.altenar.net                                        
vm/S130/s130wafe000.win.tech.altenar.net
```

<https://github.com/vmware/govmomi/tree/master/govc>

​
