Skip to content

Commit 9095c7c

Browse files
Terraform Team AutomationKhalid-Chaudhry
authored andcommitted
Added - Support for BDS - Cluster Profiles for Kafka
1 parent 888a210 commit 9095c7c

10 files changed

+554
-63
lines changed

examples/big_data_service/main.tf

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
204204
is_secure = var.bds_instance_is_secure
205205
kms_key_id = var.kms_key_id
206206
cluster_profile = var.cluster_profile
207-
bootstrap_script_url = "https://objectstorage.us-ashburn-1.oraclecloud.com/p/5M6CdCgyfNKcMGvdSIdK20tC9TAf0mVFkMsSlMdmmCaKusIX3DVixBS-_oDhJoxi/n/oraclebigdatadb/b/bootstrap-script-sdk-test/o/bootstrapScriptTemplate1bootstrapScript1.sh"
207+
bootstrap_script_url = "https://objectstorage.us-ashburn-1.oraclecloud.com/p/1hWiiE-2GVzGiKhaBX1zyXVa_jTIu_cU5kDdKTyYS74Wk5xmEA2WKht9NTA2y935/n/oraclebigdatadb/b/bootstrap-script-sdk-test/o/bootstrapScriptTemplate1bootstrapScript1.sh"
208208

209209
master_node {
210210
#Required
@@ -269,6 +269,24 @@ resource "oci_bds_bds_instance" "test_bds_instance" {
269269

270270
is_cloud_sql_configured = false
271271

272+
273+
#Change value to true for use of Kafka cluster
274+
is_kafka_configured = false
275+
276+
#Uncomment kafka_broker_node block for use of Kafka cluster
277+
#kafka_broker_node {
278+
#Required
279+
# shape = var.bds_instance_compute_only_worker_node_shape
280+
281+
# subnet_id = var.subnet_id
282+
# block_volume_size_in_gbs = var.bds_instance_worker_nodes_block_volume_size_in_gbs
283+
# number_of_nodes = 1
284+
# shape_config {
285+
# memory_in_gbs = var.bds_instance_compute_only_worker_memory_per_node
286+
# ocpus = var.bds_instance_compute_only_worker_ocpu_per_node
287+
# }
288+
#}
289+
272290
#Optional
273291
#Uncomment this when running in home region (PHX)
274292
# defined_tags = {

internal/integrationtest/bds_odh_instance_resource_test.go

Lines changed: 140 additions & 16 deletions
Large diffs are not rendered by default.

internal/service/bds/bds_bds_instance_data_source.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ func (s *BdsBdsInstanceDataSourceCrud) SetData() error {
112112
s.D.Set("is_high_availability", *s.Res.IsHighAvailability)
113113
}
114114

115+
if s.Res.IsKafkaConfigured != nil {
116+
s.D.Set("is_kafka_configured", *s.Res.IsKafkaConfigured)
117+
}
118+
115119
if s.Res.IsSecure != nil {
116120
s.D.Set("is_secure", *s.Res.IsSecure)
117121
}

0 commit comments

Comments
 (0)