Commit 87ddb2a7 authored by Kenny Moore's avatar Kenny Moore
Browse files

Added var for notebook image


Co-authored-by: Adam Robinson's avataradarobin@umich.edu <adarobin@umich.edu>
parent dc4f3acf
......@@ -147,7 +147,8 @@ resource "google_notebooks_instance" "worker_nb" {
instance_owners = each.value["username"]
vm_image {
project = "deeplearning-platform-release" # needs a var?
image_family = "tf-latest-cpu" # needs a var?
# image_family = "tf-latest-cpu" # needs a var?
image_family = each.value["image"]
}
# temporary - waiting on bug fix
lifecycle {
......
......@@ -27,9 +27,10 @@ variable "dependencies" {
default = []
}
# for deep learning image list, see documentation: https://cloud.google.com/ai-platform/deep-learning-vm/docs/images
variable "datalab_user_list" {
# type = map(string)
type = list(object({username = string, project = string, machine_type = string}))
type = list(object({username = string, project = string, machine_type = string, image = string}))
description = "A map of users to create a datalab instance for. The key is the username and the value is the project id"
default = []
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment