Skip to content

Instantly share code, notes, and snippets.

@ckelner
Created May 25, 2017 20:26
Show Gist options
  • Select an option

  • Save ckelner/5c910bf55d2876a40f67afc3e2fd8b42 to your computer and use it in GitHub Desktop.

Select an option

Save ckelner/5c910bf55d2876a40f67afc3e2fd8b42 to your computer and use it in GitHub Desktop.
# Create a new virtual guest using image "Debian"
# Your VM will appear with hostname starting with "terraformed-"
resource "ibmcloud_infra_virtual_guest" "debian_small_virtual_guest" {
os_reference_code = "DEBIAN_7_64"
domain = "myapp.ibm.com"
datacenter = "wdc04"
network_speed = 100
hourly_billing = true
private_network_only = false
cores = 1
memory = 1024
disks = [25, 10, 20]
user_metadata = "{\"value\":\"newvalue\"}"
local_disk = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment