oci_datascience_notebook_session

This resource provides the Notebook Session resource in Oracle Cloud Infrastructure Data Science service.

Creates a new notebook session.

Example Usage

resource "oci_datascience_notebook_session" "test_notebook_session" {
	#Required
	compartment_id = var.compartment_id
	project_id = oci_datascience_project.test_project.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.notebook_session_display_name
	freeform_tags = {"Department"= "Finance"}
	notebook_session_config_details {
		#Required
		shape = var.notebook_session_notebook_session_config_details_shape

		#Optional
		block_storage_size_in_gbs = var.notebook_session_notebook_session_config_details_block_storage_size_in_gbs
		notebook_session_shape_config_details {

			#Optional
			memory_in_gbs = var.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs
			ocpus = var.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus
		}
		private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
		subnet_id = oci_core_subnet.test_subnet.id
	}
	notebook_session_configuration_details {
		#Required
		shape = var.notebook_session_notebook_session_configuration_details_shape
		subnet_id = oci_core_subnet.test_subnet.id

		#Optional
		block_storage_size_in_gbs = var.notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs
		notebook_session_shape_config_details {

			#Optional
			memory_in_gbs = var.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs
			ocpus = var.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus
		}
		private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
	}
	notebook_session_runtime_config_details {

		#Optional
		custom_environment_variables = var.notebook_session_notebook_session_runtime_config_details_custom_environment_variables
		notebook_session_git_config_details {

			#Optional
			notebook_session_git_repo_config_collection {
				#Required
				url = var.notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url
			}
		}
	}
	notebook_session_storage_mount_configuration_details_list {
		#Required
		destination_directory_name = var.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name
		storage_type = var.notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type

		#Optional
		bucket = var.notebook_session_notebook_session_storage_mount_configuration_details_list_bucket
		destination_path = var.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path
		export_id = oci_file_storage_export.test_export.id
		mount_target_id = oci_file_storage_mount_target.test_mount_target.id
		namespace = var.notebook_session_notebook_session_storage_mount_configuration_details_list_namespace
		prefix = var.notebook_session_notebook_session_storage_mount_configuration_details_list_prefix
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Notebook Session * update - (Defaults to 20 minutes), when updating the Notebook Session * delete - (Defaults to 20 minutes), when destroying the Notebook Session

Import

NotebookSessions can be imported using the id, e.g.

$ terraform import oci_datascience_notebook_session.test_notebook_session "id"