Skip to content

Instantly share code, notes, and snippets.

@dice89
Created October 31, 2018 14:22
Show Gist options
  • Select an option

  • Save dice89/663ae78c9e73138cda050828a682e08e to your computer and use it in GitHub Desktop.

Select an option

Save dice89/663ae78c9e73138cda050828a682e08e to your computer and use it in GitHub Desktop.
Simple Google compute Instance
resource "google_compute_instance" "example-vm" {
count = 1
name = "example-vm"
machine_type = "n1-standard-4" // 1 CPU 14 GB of RAM
zone = "europe-west-1"
boot_disk {
initialize_params {
image = "ubuntu-os-cloud/ubuntu-1604-lts" # ubuntu image
size = 20 // 20 GB Storage
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment