clc_server

    0

    0

    lucycodes42

    Terraform snippets

    This code sets up a CLC server with the given name, description, source_server_id, and group_id. The cpu and memory_mb settings are set to 2 and 2048, respectively. The password and additional_disks settings are set to the following:

    resource "clc_server" "${myResourceName}" { name = "my-${myResourceName}" description = "my-description-${myResourceName}" source_server_id = "UBUNTU-14-64-TEMPLATE" group_id = "${clc_group.frontends.id}" cpu = 2 memory_mb = 2048 password = "Green123$" additional_disks { path = "/var" size_gb = 100 type = "partitioned" } additional_disks { size_gb = 10 type = "raw" }

    Shortcut: tf_clc_server

    resource "clc_server" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
       source_server_id = "UBUNTU-14-64-TEMPLATE"
       group_id = "\${clc_group.frontends.id}"
       cpu = 2
       memory_mb = 2048
       password = "Green123$"
       additional_disks {
           path = "/var"
           size_gb = 100
           type = "partitioned"
       }
    
       additional_disks {
           size_gb = 10
           type = "raw"
       }
    }
    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.