Created
October 31, 2018 14:22
-
-
Save dice89/663ae78c9e73138cda050828a682e08e to your computer and use it in GitHub Desktop.
Simple Google compute Instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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