oci_datascience_job_run

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

Creates a job run.

Example Usage

resource "oci_datascience_job_run" "test_job_run" {
	#Required
	compartment_id = var.compartment_id
	job_id = oci_datascience_job.test_job.id
	project_id = oci_datascience_project.test_project.id

	#Optional
  asynchronous = var.asynchronous
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.job_run_display_name
	freeform_tags = {"Department"= "Finance"}
	job_configuration_override_details {
		#Required
		job_type = var.job_run_job_configuration_override_details_job_type

		#Optional
		command_line_arguments = var.job_run_job_configuration_override_details_command_line_arguments
		environment_variables = var.job_run_job_configuration_override_details_environment_variables
		maximum_runtime_in_minutes = var.job_run_job_configuration_override_details_maximum_runtime_in_minutes
	}
	job_environment_configuration_override_details {
		#Required
		image = var.job_run_job_environment_configuration_override_details_image
		job_environment_type = var.job_run_job_environment_configuration_override_details_job_environment_type

		#Optional
		cmd = var.job_run_job_environment_configuration_override_details_cmd
		entrypoint = var.job_run_job_environment_configuration_override_details_entrypoint
		image_digest = var.job_run_job_environment_configuration_override_details_image_digest
		image_signature_id = oci_datascience_image_signature.test_image_signature.id
	}
	job_log_configuration_override_details {

		#Optional
		enable_auto_log_creation = var.job_run_job_log_configuration_override_details_enable_auto_log_creation
		enable_logging = var.job_run_job_log_configuration_override_details_enable_logging
		log_group_id = oci_logging_log_group.test_log_group.id
		log_id = oci_logging_log.test_log.id
	}
	opc_parent_rpt_url = var.job_run_opc_parent_rpt_url
}

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

Import

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

$ terraform import oci_datascience_job_run.test_job_run "id"