Created
May 20, 2021 04:02
-
-
Save calum-github/d3957456f3002be492ec4ab34e55f128 to your computer and use it in GitHub Desktop.
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
# Create an instance | |
resource "google_compute_instance" "my-instance" { | |
project = var.project_id | |
name = "my-instance-01" | |
machine_type = "e2-standard-2" | |
zone = var.zone | |
boot_disk { | |
initialize_params { | |
image = "debian-cloud/debian-9" | |
} | |
} | |
network_interface { | |
network = "default" | |
} | |
service_account { | |
email = "<project-id>[email protected]" | |
scopes = ["cloud-platform"] | |
} | |
metadata = { | |
enable-os-login = "true" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment