@@ -61,11 +61,16 @@ variable "tgt_database_id" {
6161variable "bucket_id" {
6262}
6363
64+ variable "source_connection_rds_id" {
65+ }
66+
67+
6468provider "oci" {
6569 tenancy_ocid = var. tenancy_ocid
6670 user_ocid = var. user_ocid
6771 fingerprint = var. fingerprint
6872 private_key_path = var. private_key_path
73+ auth = " SecurityToken"
6974 region = var. region
7075
7176}
@@ -150,7 +155,7 @@ resource "oci_database_migration_connection" "test_connection_target" {
150155}
151156
152157data "oci_identity_availability_domains" "test_availability_domains" {
153- compartment_id = var. tenancy_ocid
158+ compartment_id = var. compartment_id
154159}
155160
156161resource "oci_database_migration_connection" "test_connection_source" {
@@ -177,6 +182,25 @@ resource "oci_database_migration_connection" "test_connection_source" {
177182 }
178183}
179184
185+ resource "oci_database_migration_connection" "test_connection_source_rds" {
186+ admin_credentials {
187+ password = " ORcl##4567890"
188+ username = " admin"
189+ }
190+ compartment_id = var. compartment_id
191+ connect_descriptor {
192+ connect_string = " (description=(address=(port=1521)(host=10.2.2.17))(connect_data=(service_name=pdb0107svc.dbsubnet.gghubvcn.oraclevcn.com)))"
193+ }
194+ database_type = " MANUAL"
195+ manual_database_sub_type = " RDS_ORACLE"
196+ display_name = " TF_display_test_create_source_rds"
197+ vault_details {
198+ compartment_id = var. compartment_id
199+ key_id = var. kms_key_id
200+ vault_id = var. kms_vault_id
201+ }
202+ }
203+
180204resource "oci_database_migration_connection" "test_connection_source_no_ssh" {
181205 admin_credentials {
182206 password = " ORcl##4567890"
@@ -291,6 +315,48 @@ resource "oci_database_migration_migration" "test_migration" {
291315 }
292316}
293317
318+ resource "oci_database_migration_migration" "test_migration_rds" {
319+ compartment_id = var. compartment_id
320+
321+ golden_gate_service_details {
322+ settings {
323+ acceptable_lag = " 10"
324+ extract {
325+ long_trans_duration = " 10"
326+ performance_profile = " LOW"
327+ }
328+ }
329+ }
330+ data_transfer_medium_details_v2 {
331+ type = " OBJECT_STORAGE"
332+ }
333+ datapump_settings {
334+ export_directory_object {
335+ name = " test_export_dir"
336+ path = " /u01/app/oracle/product/19.0.0.0/dbhome_1/rdbms/log"
337+ }
338+ metadata_remaps {
339+ new_value = " DATA"
340+ old_value = " USERS"
341+ type = " TABLESPACE"
342+ }
343+ }
344+ exclude_objects {
345+ object = " .*"
346+ owner = " owner"
347+ is_omit_excluded_table_from_replication = " false"
348+ type = " ALL"
349+ }
350+ source_database_connection_id = var. source_connection_rds_id
351+ target_database_connection_id = var. target_connection_id
352+ type = " ONLINE"
353+ vault_details {
354+ compartment_id = var. compartment_id
355+ key_id = var. kms_key_id
356+ vault_id = var. kms_vault_id
357+ }
358+ }
359+
294360resource "oci_database_migration_migration" "test_no_ssh_migration" {
295361 compartment_id = var. compartment_id
296362 source_database_connection_id = oci_database_migration_connection. test_connection_source_no_ssh . id
0 commit comments