@@ -19,6 +19,9 @@ variable "region" {
1919variable "compartment_id" {
2020}
2121
22+ variable "subnet_id" {
23+ }
24+
2225variable "bds_instance_cluster_admin_password" {
2326 default = " T3JhY2xlVGVhbVVTQSExMjM="
2427}
@@ -77,7 +80,7 @@ variable "bds_instance_nodes_shape" {
7780}
7881
7982variable "bds_instance_worker_node_shape" {
80- default = " BM.Standard.E4.128 "
83+ default = " VM.Standard2.4 "
8184}
8285
8386variable "bds_instance_compute_only_worker_node_shape" {
@@ -92,6 +95,18 @@ variable "bds_instance_compute_only_worker_ocpu_per_node" {
9295 default = 3
9396}
9497
98+ variable "bds_instance_edge_node_shape" {
99+ default = " VM.Standard.E4.Flex"
100+ }
101+
102+ variable "bds_instance_edge_memory_per_node" {
103+ default = 32
104+ }
105+
106+ variable "bds_instance_edge_ocpu_per_node" {
107+ default = 3
108+ }
109+
95110variable "bds_instance_state" {
96111 default = " ACTIVE"
97112}
@@ -163,7 +178,7 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
163178 # Required
164179 shape = var. bds_instance_nodes_shape
165180
166- subnet_id = oci_core_subnet . regional_subnet_bds . id
181+ subnet_id = var . subnet_id
167182 block_volume_size_in_gbs = var. bds_instance_nodes_block_volume_size_in_gbs
168183 number_of_nodes = 1
169184 }
@@ -172,7 +187,7 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
172187 # Required
173188 shape = var. bds_instance_nodes_shape
174189
175- subnet_id = oci_core_subnet . regional_subnet_bds . id
190+ subnet_id = var . subnet_id
176191 block_volume_size_in_gbs = var. bds_instance_nodes_block_volume_size_in_gbs
177192 number_of_nodes = 1
178193 }
@@ -181,16 +196,29 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
181196 # Required
182197 shape = var. bds_instance_worker_node_shape
183198
184- subnet_id = oci_core_subnet . regional_subnet_bds . id
199+ subnet_id = var . subnet_id
185200 block_volume_size_in_gbs = var. bds_instance_worker_nodes_block_volume_size_in_gbs
186201 number_of_nodes = 4
187202 }
188203
204+ edge_node {
205+ # Required
206+ shape = var. bds_instance_edge_node_shape
207+
208+ subnet_id = var. subnet_id
209+ block_volume_size_in_gbs = var. bds_instance_worker_nodes_block_volume_size_in_gbs
210+ number_of_nodes = 1
211+ shape_config {
212+ memory_in_gbs = var. bds_instance_edge_memory_per_node
213+ ocpus = var. bds_instance_edge_ocpu_per_node
214+ }
215+ }
216+
189217 compute_only_worker_node {
190218 # Required
191219 shape = var. bds_instance_compute_only_worker_node_shape
192220
193- subnet_id = oci_core_subnet . regional_subnet_bds . id
221+ subnet_id = var . subnet_id
194222 block_volume_size_in_gbs = var. bds_instance_worker_nodes_block_volume_size_in_gbs
195223 number_of_nodes = 1
196224 shape_config {
@@ -199,6 +227,9 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
199227 }
200228 }
201229
230+
231+
232+
202233 # cloud_sql_details {
203234 # shape = "VM.Standard2.4"
204235 # block_volume_size_in_gbs = 1000
0 commit comments