Instance
Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, accelerator_config=None, boot_disk_size_gb=None, boot_disk_type=None, container_image=None, create_time=None, custom_gpu_driver_path=None, data_disk_size_gb=None, data_disk_type=None, disk_encryption=None, install_gpu_driver=None, instance_owners=None, kms_key=None, labels=None, location=None, machine_type=None, metadata=None, name=None, network=None, no_proxy_access=None, no_public_ip=None, no_remove_data_disk=None, post_startup_script=None, project=None, service_account=None, subnet=None, update_time=None, vm_image=None, __props__=None);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Location string
A reference to the zone where the machine resides.
- Machine
Type string A reference to a machine type which defines VM kind.
- Accelerator
Config InstanceAccelerator Config Args The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- Boot
Disk intSize Gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- Boot
Disk stringType Possible disk types for notebook instances.
- Container
Image InstanceContainer Image Args Use a container image to start the notebook instance. Structure is documented below.
- Create
Time string Instance creation time
- Custom
Gpu stringDriver Path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- Data
Disk intSize Gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- Data
Disk stringType Possible disk types for notebook instances.
- Disk
Encryption string Disk encryption method used on the boot and data disks, defaults to GMEK.
- Install
Gpu boolDriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- Instance
Owners string The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- Kms
Key string The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- Labels Dictionary<string, string>
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Metadata Dictionary<string, string>
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Name string
The name specified for the Notebook instance.
- Network string
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- No
Proxy boolAccess the notebook instance will not register with the proxy..
- No
Public boolIp no public IP will be assigned to this instance.
- No
Remove boolData Disk If true, the data disk will not be auto deleted when deleting the instance.
- Post
Startup stringScript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- Project string
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- Service
Account string The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- Subnet string
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- Update
Time string Instance update time.
- Vm
Image InstanceVm Image Args Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
- Location string
A reference to the zone where the machine resides.
- Machine
Type string A reference to a machine type which defines VM kind.
- Accelerator
Config InstanceAccelerator Config The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- Boot
Disk intSize Gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- Boot
Disk stringType Possible disk types for notebook instances.
- Container
Image InstanceContainer Image Use a container image to start the notebook instance. Structure is documented below.
- Create
Time string Instance creation time
- Custom
Gpu stringDriver Path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- Data
Disk intSize Gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- Data
Disk stringType Possible disk types for notebook instances.
- Disk
Encryption string Disk encryption method used on the boot and data disks, defaults to GMEK.
- Install
Gpu boolDriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- Instance
Owners string The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- Kms
Key string The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- Labels map[string]string
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Metadata map[string]string
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Name string
The name specified for the Notebook instance.
- Network string
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- No
Proxy boolAccess the notebook instance will not register with the proxy..
- No
Public boolIp no public IP will be assigned to this instance.
- No
Remove boolData Disk If true, the data disk will not be auto deleted when deleting the instance.
- Post
Startup stringScript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- Project string
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- Service
Account string The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- Subnet string
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- Update
Time string Instance update time.
- Vm
Image InstanceVm Image Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
- location string
A reference to the zone where the machine resides.
- machine
Type string A reference to a machine type which defines VM kind.
- accelerator
Config InstanceAccelerator Config The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- boot
Disk numberSize Gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- boot
Disk stringType Possible disk types for notebook instances.
- container
Image InstanceContainer Image Use a container image to start the notebook instance. Structure is documented below.
- create
Time string Instance creation time
- custom
Gpu stringDriver Path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- data
Disk numberSize Gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- data
Disk stringType Possible disk types for notebook instances.
- disk
Encryption string Disk encryption method used on the boot and data disks, defaults to GMEK.
- install
Gpu booleanDriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- instance
Owners string The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- kms
Key string The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- labels {[key: string]: string}
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- metadata {[key: string]: string}
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- name string
The name specified for the Notebook instance.
- network string
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- no
Proxy booleanAccess the notebook instance will not register with the proxy..
- no
Public booleanIp no public IP will be assigned to this instance.
- no
Remove booleanData Disk If true, the data disk will not be auto deleted when deleting the instance.
- post
Startup stringScript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- project string
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- service
Account string The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- subnet string
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- update
Time string Instance update time.
- vm
Image InstanceVm Image Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
- location str
A reference to the zone where the machine resides.
- machine_
type str A reference to a machine type which defines VM kind.
- accelerator_
config Dict[InstanceAccelerator Config] The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- boot_
disk_ floatsize_ gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- boot_
disk_ strtype Possible disk types for notebook instances.
- container_
image Dict[InstanceContainer Image] Use a container image to start the notebook instance. Structure is documented below.
- create_
time str Instance creation time
- custom_
gpu_ strdriver_ path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- data_
disk_ floatsize_ gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- data_
disk_ strtype Possible disk types for notebook instances.
- disk_
encryption str Disk encryption method used on the boot and data disks, defaults to GMEK.
- install_
gpu_ booldriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- instance_
owners str The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- kms_
key str The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- labels Dict[str, str]
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- metadata Dict[str, str]
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- name str
The name specified for the Notebook instance.
- network str
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- no_
proxy_ boolaccess the notebook instance will not register with the proxy..
- no_
public_ boolip no public IP will be assigned to this instance.
- no_
remove_ booldata_ disk If true, the data disk will not be auto deleted when deleting the instance.
- post_
startup_ strscript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- project str
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- service_
account str The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- subnet str
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- update_
time str Instance update time.
- vm_
image Dict[InstanceVm Image] Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
Look up an Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, accelerator_config=None, boot_disk_size_gb=None, boot_disk_type=None, container_image=None, create_time=None, custom_gpu_driver_path=None, data_disk_size_gb=None, data_disk_type=None, disk_encryption=None, install_gpu_driver=None, instance_owners=None, kms_key=None, labels=None, location=None, machine_type=None, metadata=None, name=None, network=None, no_proxy_access=None, no_public_ip=None, no_remove_data_disk=None, post_startup_script=None, project=None, proxy_uri=None, service_account=None, state=None, subnet=None, update_time=None, vm_image=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Accelerator
Config InstanceAccelerator Config Args The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- Boot
Disk intSize Gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- Boot
Disk stringType Possible disk types for notebook instances.
- Container
Image InstanceContainer Image Args Use a container image to start the notebook instance. Structure is documented below.
- Create
Time string Instance creation time
- Custom
Gpu stringDriver Path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- Data
Disk intSize Gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- Data
Disk stringType Possible disk types for notebook instances.
- Disk
Encryption string Disk encryption method used on the boot and data disks, defaults to GMEK.
- Install
Gpu boolDriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- Instance
Owners string The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- Kms
Key string The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- Labels Dictionary<string, string>
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Location string
A reference to the zone where the machine resides.
- Machine
Type string A reference to a machine type which defines VM kind.
- Metadata Dictionary<string, string>
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Name string
The name specified for the Notebook instance.
- Network string
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- No
Proxy boolAccess the notebook instance will not register with the proxy..
- No
Public boolIp no public IP will be assigned to this instance.
- No
Remove boolData Disk If true, the data disk will not be auto deleted when deleting the instance.
- Post
Startup stringScript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- Project string
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- Proxy
Uri string The proxy endpoint that is used to access the Jupyter notebook.
- Service
Account string The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- State string
The state of this instance.
- Subnet string
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- Update
Time string Instance update time.
- Vm
Image InstanceVm Image Args Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
- Accelerator
Config InstanceAccelerator Config The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- Boot
Disk intSize Gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- Boot
Disk stringType Possible disk types for notebook instances.
- Container
Image InstanceContainer Image Use a container image to start the notebook instance. Structure is documented below.
- Create
Time string Instance creation time
- Custom
Gpu stringDriver Path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- Data
Disk intSize Gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- Data
Disk stringType Possible disk types for notebook instances.
- Disk
Encryption string Disk encryption method used on the boot and data disks, defaults to GMEK.
- Install
Gpu boolDriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- Instance
Owners string The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- Kms
Key string The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- Labels map[string]string
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Location string
A reference to the zone where the machine resides.
- Machine
Type string A reference to a machine type which defines VM kind.
- Metadata map[string]string
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- Name string
The name specified for the Notebook instance.
- Network string
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- No
Proxy boolAccess the notebook instance will not register with the proxy..
- No
Public boolIp no public IP will be assigned to this instance.
- No
Remove boolData Disk If true, the data disk will not be auto deleted when deleting the instance.
- Post
Startup stringScript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- Project string
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- Proxy
Uri string The proxy endpoint that is used to access the Jupyter notebook.
- Service
Account string The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- State string
The state of this instance.
- Subnet string
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- Update
Time string Instance update time.
- Vm
Image InstanceVm Image Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
- accelerator
Config InstanceAccelerator Config The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- boot
Disk numberSize Gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- boot
Disk stringType Possible disk types for notebook instances.
- container
Image InstanceContainer Image Use a container image to start the notebook instance. Structure is documented below.
- create
Time string Instance creation time
- custom
Gpu stringDriver Path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- data
Disk numberSize Gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- data
Disk stringType Possible disk types for notebook instances.
- disk
Encryption string Disk encryption method used on the boot and data disks, defaults to GMEK.
- install
Gpu booleanDriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- instance
Owners string The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- kms
Key string The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- labels {[key: string]: string}
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- location string
A reference to the zone where the machine resides.
- machine
Type string A reference to a machine type which defines VM kind.
- metadata {[key: string]: string}
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- name string
The name specified for the Notebook instance.
- network string
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- no
Proxy booleanAccess the notebook instance will not register with the proxy..
- no
Public booleanIp no public IP will be assigned to this instance.
- no
Remove booleanData Disk If true, the data disk will not be auto deleted when deleting the instance.
- post
Startup stringScript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- project string
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- proxy
Uri string The proxy endpoint that is used to access the Jupyter notebook.
- service
Account string The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- state string
The state of this instance.
- subnet string
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- update
Time string Instance update time.
- vm
Image InstanceVm Image Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
- accelerator_
config Dict[InstanceAccelerator Config] The hardware accelerator used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machineType you have selected. Structure is documented below.
- boot_
disk_ floatsize_ gb The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
- boot_
disk_ strtype Possible disk types for notebook instances.
- container_
image Dict[InstanceContainer Image] Use a container image to start the notebook instance. Structure is documented below.
- create_
time str Instance creation time
- custom_
gpu_ strdriver_ path Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
- data_
disk_ floatsize_ gb The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
- data_
disk_ strtype Possible disk types for notebook instances.
- disk_
encryption str Disk encryption method used on the boot and data disks, defaults to GMEK.
- install_
gpu_ booldriver Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
- instance_
owners str The owner of this instance after creation. Format: alias@example.com. Currently supports one owner only. If not specified, all of the service account users of your VM instance’s service account can use the instance.
- kms_
key str The KMS key used to encrypt the disks, only applicable if diskEncryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}
- labels Dict[str, str]
Labels to apply to this instance. These can be later modified by the setLabels method. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- location str
A reference to the zone where the machine resides.
- machine_
type str A reference to a machine type which defines VM kind.
- metadata Dict[str, str]
Custom metadata to apply to this instance. An object containing a list of “key”: value pairs. Example: { “name”: “wrench”, “mass”: “1.3kg”, “count”: “3” }.
- name str
The name specified for the Notebook instance.
- network str
The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}
- no_
proxy_ boolaccess the notebook instance will not register with the proxy..
- no_
public_ boolip no public IP will be assigned to this instance.
- no_
remove_ booldata_ disk If true, the data disk will not be auto deleted when deleting the instance.
- post_
startup_ strscript Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).
- project str
The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id}
- proxy_
uri str The proxy endpoint that is used to access the Jupyter notebook.
- service_
account str The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.
- state str
The state of this instance.
- subnet str
The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
- update_
time str Instance update time.
- vm_
image Dict[InstanceVm Image] Use a Compute Engine VM image to start the notebook instance. Structure is documented below.
Supporting Types
InstanceAcceleratorConfig
InstanceContainerImage
- Repository string
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- Tag string
The tag of the container image. If not specified, this defaults to the latest tag.
- Repository string
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- Tag string
The tag of the container image. If not specified, this defaults to the latest tag.
- repository string
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag string
The tag of the container image. If not specified, this defaults to the latest tag.
- repository str
The path to the container image repository. For example: gcr.io/{project_id}/{imageName}
- tag str
The tag of the container image. If not specified, this defaults to the latest tag.
InstanceVmImage
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.