ibm_compute_vm_instance

    0

    0

    lucycodes42

    Terraform snippets

    This code creates a resource called "myResourceName" and assigns it the following attributes: name, domain, image, region, public_network_speed, hourly_billing, private_network_only, cpu, ram, disks, and local_disk. The ssh_key_ids attribute contains the id of an ssh key for this resource.

    Shortcut: tf_ibm_compute_vm_instance

    resource "ibm_compute_vm_instance" "${myResourceName}" {
       name = "my-${myResourceName}"
       domain = "example.com"
       image = "DEBIAN_7_64"
       region = "ams01"
       public_network_speed = 10
       hourly_billing = true
       private_network_only = false
       cpu = 1
       ram = 1024
       disks = [25, 10, 20]
       local_disk = false
       ssh_key_ids = "${ibm_compute_ssh_key.myResourceName.id}"]
    }
    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.