oci_dataflow_application

This resource provides the Application resource in Oracle Cloud Infrastructure Data Flow service.

Creates an application.

Example Usage

resource "oci_dataflow_application" "test_application" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.application_display_name
	driver_shape = var.application_driver_shape
	executor_shape = var.application_executor_shape
	language = var.application_language
	num_executors = var.application_num_executors
	spark_version = var.application_spark_version

	#Optional
	application_log_config {
		#Required
		log_group_id = oci_logging_log_group.test_log_group.id
		log_id = oci_logging_log.test_log.id
	}
	archive_uri = var.application_archive_uri
	arguments = var.application_arguments
	class_name = var.application_class_name
	configuration = var.application_configuration
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.application_description
	driver_shape_config {

		#Optional
		memory_in_gbs = var.application_driver_shape_config_memory_in_gbs
		ocpus = var.application_driver_shape_config_ocpus
	}
	execute = var.application_execute
	executor_shape_config {

		#Optional
		memory_in_gbs = var.application_executor_shape_config_memory_in_gbs
		ocpus = var.application_executor_shape_config_ocpus
	}
	file_uri = var.application_file_uri
	freeform_tags = {"Department"= "Finance"}
	idle_timeout_in_minutes = var.application_idle_timeout_in_minutes
	logs_bucket_uri = var.application_logs_bucket_uri
	max_duration_in_minutes = var.application_max_duration_in_minutes
	metastore_id = var.metastore_id
	parameters {
		#Required
		name = var.application_parameters_name
		value = var.application_parameters_value
	}
	pool_id = oci_dataflow_pool.test_pool.id
	private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
	type = var.application_type
	warehouse_bucket_uri = var.application_warehouse_bucket_uri
	terminate_runs_on_deletion = true
}

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

Import

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

$ terraform import oci_dataflow_application.test_application "id"