googleNotebooksEnvironment
A Cloud AI Platform Notebook environment.
To get more information about Environment, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Notebook Environment Basic
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.notebooksEnvironment.NotebooksEnvironment(this, "environment", {
container_image: [
{
repository: "gcr.io/deeplearning-platform-release/base-cpu",
},
],
location: "us-west1-a",
name: "notebooks-environment",
});
Argument Reference
The following arguments are supported:
-
name
- (Required) The name specified for the Environment instance. Format: projects/{project_id}/locations/{location}/environments/{environmentId} -
location
- (Required) A reference to the zone where the machine resides.
-
displayName
- (Optional) Display name of this environment for the UI. -
description
- (Optional) A brief description of this environment. -
postStartupScript
- (Optional) 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. Example: "gs://path-to-file/file-name" -
vmImage
- (Optional) Use a Compute Engine VM image to start the notebook instance. Structure is documented below. -
containerImage
- (Optional) Use a container image to start the notebook instance. Structure is documented below. -
project
- (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
project
- (Required) The name of the Google Cloud project that this VM image belongs to. Format: projects/{project_id} -
imageName
- (Optional) Use VM image name to find the image. -
imageFamily
- (Optional) Use this VM image family to find the image; the newest image in this family will be used.
The containerImage
block supports:
-
repository
- (Required) The path to the container image repository. For example: gcr.io/{project_id}/{imageName} -
tag
- (Optional) The tag of the container image. If not specified, this defaults to the latest tag.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
-
id
- an identifier for the resource with formatprojects/{{project}}/locations/{{location}}/environments/{{name}}
-
createTime
- Instance creation time
Timeouts
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.
Import
Environment can be imported using any of these accepted formats:
$ terraform import google_notebooks_environment.default projects/{{project}}/locations/{{location}}/environments/{{name}}
$ terraform import google_notebooks_environment.default {{project}}/{{location}}/{{name}}
$ terraform import google_notebooks_environment.default {{location}}/{{name}}
User Project Overrides
This resource supports User Project Overrides.