Skip to content

Instantly share code, notes, and snippets.

@nakamasato
Created June 13, 2022 20:29
Show Gist options
  • Save nakamasato/e076c4f4f1f0ea8fd8404bed879f8a39 to your computer and use it in GitHub Desktop.
Save nakamasato/e076c4f4f1f0ea8fd8404bed879f8a39 to your computer and use it in GitHub Desktop.
GCP notebook instance terraform file
resource "google_notebooks_instance" "test-notebook" {
name = "test-notebook"
project = "naka-test-notebook"
location = "asia-northeast1-b"
machine_type = "n1-standard-1" // n1-standard-1 $41.01 monthly estimate
install_gpu_driver = false
instance_owners = ["naka@gmail.com"]
vm_image { // https://cloud.google.com/vertex-ai/docs/workbench/user-managed/images
project = "deeplearning-platform-release"
image_family = "common-cpu-notebooks"
}
metadata = {
terraform = "true"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment