Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
RecordRequests = false

Env.DATABRICKS_CACHE_ENABLED = 'false'

[[Repls]]
Old = 'terraform.tfstate'
New = 'resources.json'
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Badness = "In terraform, local_ssd_count field is not sent to backend"
Cloud = true
RecordRequests = true

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
trace $CLI bundle deploy
print_requests.py --nostamp //api/2.0/pipelines > out.requests.txt 2>&1

if [ -f .databricks/bundle/default/terraform/bundle.tf.json ]; then
jq .resource.databricks_pipeline .databricks/bundle/default/terraform/bundle.tf.json > out.tf.json
fi
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,8 @@ All files and directories at the following location will be deleted: /Workspace/

Destroy: 1 deleted

=== Old project is gone after recreate
Old project is deleted

>>> [CLI] bundle destroy --auto-approve
No active deployment found to destroy!
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@ trace $CLI bundle destroy --auto-approve

print_requests.py --del-body parent,project_id,branch_id,endpoint_id,database_id,role_id,catalog_id,synced_table_id '//postgres' '^//workspace-files/' '^//workspace/' '^//telemetry-ext' '^//operations/' > out.requests.destroy.txt

# Clean up any orphaned old project (terraform doesn't delete it on recreation)
$CLI postgres delete-project $project_id_1 2>/dev/null || true
title "Old project is gone after recreate"
echo
Comment thread
denik marked this conversation as resolved.
Resolved
# Local testserver returns not found; the cloud soft-deletes and returns the project with delete_time set.
errcode $CLI postgres get-project $project_id_1 &> old_project.tmp
grep -q -e 'not found' -e '"delete_time"' old_project.tmp && echo "Old project is deleted" || echo "Old project still exists"
rm old_project.tmp
Loading