@@ -23,12 +23,31 @@ terraform
2323>>> jq .state."resources.pipelines.test_pipeline".state.tags.volume_storage_location out.new_state.json
2424"s3://deco-uc-prod-isolated-aws-us-east-1/metastore/[UUID]/volumes/[UUID]"
2525
26- >>> [CLI] bundle plan
26+ >>> DATABRICKS_BUNDLE_ENGINE=terraform musterr [CLI] bundle plan
27+ Error: Required engine "terraform" does not match present state files. Set required engine via "DATABRICKS_BUNDLE_ENGINE" env var.
28+
29+ Available state files:
30+ - terraform.tfstate: remote terraform state serial=4 lineage="[UUID]"
31+ - [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=5 lineage="[UUID]"
32+
33+
34+ >>> DATABRICKS_BUNDLE_ENGINE=terraform musterr [CLI] bundle deploy
35+ Error: Required engine "terraform" does not match present state files. Set required engine via "DATABRICKS_BUNDLE_ENGINE" env var.
36+
37+ Available state files:
38+ - terraform.tfstate: remote terraform state serial=4 lineage="[UUID]"
39+ - [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=5 lineage="[UUID]"
40+
41+
42+ >>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan
2743update pipelines.test_pipeline
2844
2945Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged
3046
31- >>> [CLI] bundle debug plan
47+ >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle plan
48+ update pipelines.test_pipeline
49+
50+ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged
3251
3352>>> print_requests.py --get //jobs/get
3453{
@@ -46,7 +65,7 @@ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged
4665{
4766 "headers": {
4867 "User-Agent": [
49- "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_debug_plan cmd-exec-id/[UUID] engine/direct auth/pat"
68+ "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] engine/direct auth/pat"
5069 ]
5170 },
5271 "method": "GET",
@@ -56,7 +75,7 @@ Plan: 0 to add, 1 to change, 0 to delete, 2 unchanged
5675 }
5776}
5877
59- >>> [CLI] bundle deploy
78+ >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy
6079Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/default/files...
6180Deploying resources...
6281Updating deployment state...
@@ -70,3 +89,11 @@ Deployment complete!
7089>>> musterr [CLI] bundle deployment migrate
7190Error: already using direct engine
7291Details: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=5 lineage="[UUID]"
92+
93+ >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states
94+ [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=5 lineage="[UUID]"
95+
96+ >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle debug states --force-pull
97+ terraform.tfstate: remote terraform state serial=4 lineage="[UUID]"
98+ resources.json: remote direct state serial=5 lineage="[UUID]"
99+ [TEST_TMP_DIR]/.databricks/bundle/default/resources.json: local direct state serial=5 lineage="[UUID]"
0 commit comments