Environment
A Cloud AI Platform Notebook environment. To get more information about Environment, see:
How-to Guides
Example Usage
Notebook Environment Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.notebooks.Environment;
import com.pulumi.gcp.notebooks.EnvironmentArgs;
import com.pulumi.gcp.notebooks.inputs.EnvironmentContainerImageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var environment = new Environment("environment", EnvironmentArgs.builder()
.containerImage(EnvironmentContainerImageArgs.builder()
.repository("gcr.io/deeplearning-platform-release/base-cpu")
.build())
.location("us-west1-a")
.build());
}
}
Content copied to clipboard
Import
Environment can be imported using any of these accepted formats
$ pulumi import gcp:notebooks/environment:Environment default projects/{{project}}/locations/{{location}}/environments/{{name}}
Content copied to clipboard
$ pulumi import gcp:notebooks/environment:Environment default {{project}}/{{location}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:notebooks/environment:Environment default {{location}}/{{name}}
Content copied to clipboard
Properties
Link copied to clipboard
Use a container image to start the notebook instance. Structure is documented below.
Link copied to clipboard
Instance creation time
Link copied to clipboard
A brief description of this environment.
Link copied to clipboard
Display name of this environment for the UI.
Link copied to clipboard
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"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Use a Compute Engine VM image to start the notebook instance. Structure is documented below.