oci_dataflow_sql_endpoint

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

Note

Resource Discovery is not supported for this resource.

Create a new Sql Endpoint.

Example Usage

resource "oci_dataflow_sql_endpoint" "test_sql_endpoint" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.sql_endpoint_display_name
	driver_shape = var.sql_endpoint_driver_shape
	executor_shape = var.sql_endpoint_executor_shape
	lake_id = oci_dataflow_lake.test_lake.id
	max_executor_count = var.sql_endpoint_max_executor_count
	metastore_id = oci_datacatalog_metastore.test_metastore.id
	min_executor_count = var.sql_endpoint_min_executor_count
	network_configuration {
		#Required
		network_type = var.sql_endpoint_network_configuration_network_type

		#Optional
		access_control_rules {

			#Optional
			ip_notation = var.sql_endpoint_network_configuration_access_control_rules_ip_notation
			value = var.sql_endpoint_network_configuration_access_control_rules_value
			vcn_ips = var.sql_endpoint_network_configuration_access_control_rules_vcn_ips
		}
		host_name_prefix = var.sql_endpoint_network_configuration_host_name_prefix
		nsg_ids = var.sql_endpoint_network_configuration_nsg_ids
		private_endpoint_ip = var.sql_endpoint_network_configuration_private_endpoint_ip
		public_endpoint_ip = var.sql_endpoint_network_configuration_public_endpoint_ip
		subnet_id = oci_core_subnet.test_subnet.id
		vcn_id = oci_core_vcn.test_vcn.id
	}
	sql_endpoint_version = var.sql_endpoint_sql_endpoint_version
	warehouse_bucket_uri = var.sql_endpoint_warehouse_bucket_uri

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.sql_endpoint_description
	driver_shape_config {

		#Optional
		memory_in_gbs = var.sql_endpoint_driver_shape_config_memory_in_gbs
		ocpus = var.sql_endpoint_driver_shape_config_ocpus
	}
	executor_shape_config {

		#Optional
		memory_in_gbs = var.sql_endpoint_executor_shape_config_memory_in_gbs
		ocpus = var.sql_endpoint_executor_shape_config_ocpus
	}
	freeform_tags = {"Department"= "Finance"}
	spark_advanced_configurations = var.sql_endpoint_spark_advanced_configurations
}

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

Import

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

$ terraform import oci_dataflow_sql_endpoint.test_sql_endpoint "id"