0
0
llucycodes42
This code defines a resource named "vsphere_file" that stores a virtual disk in the my_datacenter in the my_datastore on the local machine.
Shortcut: tf_vsphere_file
resource "vsphere_file" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
datacenter = "my_datacenter"
datastore = "local"
source_file = "/home/ubuntu/my_disks/custom_ubuntu.vmdk"
destination_file = "/my_path/disks/custom_ubuntu.vmdk"
}