File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,4 +50,8 @@ output "ns_objectstorage_namespace" {
5050}
5151output "autonomous_database_admin_password" {
5252 value = [ " Welcome12345" ]
53+ }
54+
55+ output "adb_ocid" {
56+ value = oci_database_autonomous_database. autonomous_database_atp . id
5357}
Original file line number Diff line number Diff line change 284284
285285# Get MTDR_DB OCID
286286while ! state_done MTDR_DB_OCID; do
287- MTDR_DB_OCID=` oci db autonomous-database list --compartment-id " $( cat state/COMPARTMENT_OCID ) " --query ' join( ' " ' ' " ' ,data[?"display-name"== ' " 'MTDRDB' " ' ].id) ' -- raw-output `
287+ MTDR_DB_OCID=` terraform -chdir= " $MTDRWORKSHOP_LOCATION /terraform " output -- raw adb_ocid `
288288 if [[ " $MTDR_DB_OCID " =~ ocid1.autonomousdatabase* ]]; then
289289 state_set MTDR_DB_OCID " $MTDR_DB_OCID "
290290 else
You can’t perform that action at this time.
0 commit comments