oci_datascience_pipeline

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

Creates a new Pipeline.

Example Usage

resource "oci_datascience_pipeline" "test_pipeline" {
	#Required
	compartment_id = var.compartment_id
	project_id = oci_datascience_project.test_project.id
	step_details {
		#Required
		step_name = var.pipeline_step_details_step_name
		step_type = var.pipeline_step_details_step_type

		#Optional
		depends_on = var.pipeline_step_details_depends_on
		description = var.pipeline_step_details_description
		is_artifact_uploaded = var.pipeline_step_details_is_artifact_uploaded
		job_id = oci_datascience_job.test_job.id
		step_configuration_details {

			#Optional
			command_line_arguments = var.pipeline_step_details_step_configuration_details_command_line_arguments
			environment_variables = var.pipeline_step_details_step_configuration_details_environment_variables
			maximum_runtime_in_minutes = var.pipeline_step_details_step_configuration_details_maximum_runtime_in_minutes
		}
		step_container_configuration_details {
			#Required
			container_type = var.pipeline_step_details_step_container_configuration_details_container_type
			image = var.pipeline_step_details_step_container_configuration_details_image

			#Optional
			cmd = var.pipeline_step_details_step_container_configuration_details_cmd
			entrypoint = var.pipeline_step_details_step_container_configuration_details_entrypoint
			image_digest = var.pipeline_step_details_step_container_configuration_details_image_digest
			image_signature_id = oci_datascience_image_signature.test_image_signature.id
		}
		step_infrastructure_configuration_details {

			#Optional
			block_storage_size_in_gbs = var.pipeline_step_details_step_infrastructure_configuration_details_block_storage_size_in_gbs
			shape_config_details {

				#Optional
				memory_in_gbs = var.pipeline_step_details_step_infrastructure_configuration_details_shape_config_details_memory_in_gbs
				ocpus = var.pipeline_step_details_step_infrastructure_configuration_details_shape_config_details_ocpus
			}
			shape_name = oci_core_shape.test_shape.name
			subnet_id = oci_core_subnet.test_subnet.id
		}
	}

	#Optional
	configuration_details {
		#Required
		type = var.pipeline_configuration_details_type

		#Optional
		command_line_arguments = var.pipeline_configuration_details_command_line_arguments
		environment_variables = var.pipeline_configuration_details_environment_variables
		maximum_runtime_in_minutes = var.pipeline_configuration_details_maximum_runtime_in_minutes
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.pipeline_description
	display_name = var.pipeline_display_name
	freeform_tags = {"Department"= "Finance"}
	infrastructure_configuration_details {
		#Required
		block_storage_size_in_gbs = var.pipeline_infrastructure_configuration_details_block_storage_size_in_gbs
		shape_name = oci_core_shape.test_shape.name

		#Optional
		shape_config_details {

			#Optional
			memory_in_gbs = var.pipeline_infrastructure_configuration_details_shape_config_details_memory_in_gbs
			ocpus = var.pipeline_infrastructure_configuration_details_shape_config_details_ocpus
		}
		subnet_id = oci_core_subnet.test_subnet.id
	}
	log_configuration_details {

		#Optional
		enable_auto_log_creation = var.pipeline_log_configuration_details_enable_auto_log_creation
		enable_logging = var.pipeline_log_configuration_details_enable_logging
		log_group_id = oci_logging_log_group.test_log_group.id
		log_id = oci_logging_log.test_log.id
	}
}

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 Pipeline * update - (Defaults to 20 minutes), when updating the Pipeline * delete - (Defaults to 20 minutes), when destroying the Pipeline

Import

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

$ terraform import oci_datascience_pipeline.test_pipeline "id"