Terraform snippets

    The code creates a cloudstack_template resource with the name "my-${myResourceName}" and sets the format to VHD. The resource is associated with a hypervisor, XenServer, and is configured to use the CentOS 6.4 (64bit) operating system. The template is located at The resource is assigned to the zone "zone-1.

    Shortcut: tf_cloudstack_template

    resource "cloudstack_template" "${myResourceName}" {
       name = "my-${myResourceName}"
       format= "VHD"
       hypervisor = "XenServer"
       os_type = "CentOS 6.4 (64bit)"
       url = ""
       zone = "zone-1"
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.