github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/vsphere/r/file.html.markdown (about) 1 --- 2 layout: "vsphere" 3 page_title: "VMware vSphere: vsphere_file" 4 sidebar_current: "docs-vsphere-resource-file" 5 description: |- 6 Provides a VMware vSphere virtual machine file resource. This can be used to upload files (e.g. vmdk disks) from the Terraform host machine to a remote vSphere. 7 --- 8 9 # vsphere\_file 10 11 Provides a VMware vSphere virtual machine file resource. This can be used to upload files (e.g. vmdk disks) from the Terraform host machine to a remote vSphere. 12 13 ## Example Usage 14 15 ``` 16 resource "vsphere_file" "ubuntu_disk" { 17 datastore = "local" 18 source_file = "/home/ubuntu/my_disks/custom_ubuntu.vmdk" 19 destination_file = "/my_path/disks/custom_ubuntu.vmdk" 20 } 21 ``` 22 23 ## Argument Reference 24 25 The following arguments are supported: 26 27 * `source_file` - (Required) The path to the file on the Terraform host that will be uploaded to vSphere. 28 * `destination_file` - (Required) The path to where the file should be uploaded to on vSphere. 29 * `datacenter` - (Optional) The name of a Datacenter in which the file will be created/uploaded to. 30 * `datastore` - (Required) The name of the Datastore in which to create/upload the file to.