File tree Expand file tree Collapse file tree 3 files changed +367
-0
lines changed
examples/dataflow/sql_endpoint Expand file tree Collapse file tree 3 files changed +367
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,15 @@ variable "region" {
2323variable "metastore_id" {
2424}
2525
26+ variable "vcn_id" {
27+ }
28+
29+ variable "subnet_id" {
30+ }
31+
32+ variable "nsg_id" {
33+ }
34+
2635
2736provider "oci" {
2837 region = var. region
@@ -65,6 +74,42 @@ resource "oci_dataflow_sql_endpoint" "test_sql_endpoint" {
6574 }
6675}
6776
77+ resource "oci_dataflow_sql_endpoint" "test_sql_endpoint_vcn" {
78+ compartment_id = var. compartment_id
79+ display_name = " test_sql_endpoint_vcn"
80+ driver_shape = " VM.Standard.E4.Flex"
81+ driver_shape_config {
82+ memory_in_gbs = 32
83+ ocpus = 2
84+ }
85+ executor_shape = " VM.Standard.E4.Flex"
86+ executor_shape_config {
87+ memory_in_gbs = 32
88+ ocpus = 2
89+ }
90+ max_executor_count = 2
91+ metastore_id = var. metastore_id
92+ min_executor_count = 1
93+ network_configuration {
94+ network_type = " VCN"
95+ vcn_id = var. vcn_id
96+ subnet_id = var. subnet_id
97+ nsg_ids = [ var . nsg_id ]
98+ }
99+ sql_endpoint_version = " 3.2.1"
100+ # Optional
101+ # state = "ACTIVE" OR "INACTIVE" You can use ACTIVE in order to start a stopped sql endpoint and INACTIVE in order to stop a active sql endpoint
102+ # defined_tags = {"${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}" = "value"}
103+ # description = var.description
104+ freeform_tags = {
105+ " Department" = " Finance"
106+ }
107+
108+ lifecycle {
109+ ignore_changes = [ system_tags ]
110+ }
111+ }
112+
68113data "oci_dataflow_sql_endpoints" "tf_sql_endpoints" {
69114 # Required
70115 compartment_id = var. compartment_id
You can’t perform that action at this time.
0 commit comments