vsphere_file

    0

    0

    lucycodes42

    Terraform snippets

    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"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.