|
| 1 | + |
| 2 | +>>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy --var=job_name=Custom Job Name |
| 3 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev/files... |
| 4 | +Deploying resources... |
| 5 | +Updating deployment state... |
| 6 | +Deployment complete! |
| 7 | + |
| 8 | +>>> [CLI] bundle deployment migrate --var=job_name=Custom Job Name |
| 9 | +Note: Migration should be done after a full deploy. Running plan now to verify that deployment was done: |
| 10 | +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged |
| 11 | +Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json |
| 12 | + |
| 13 | +Validate the migration by running "databricks bundle plan --var 'job_name=Custom Job Name'", there should be no actions planned. |
| 14 | + |
| 15 | +The state file is not synchronized to the workspace yet. To do that and finalize the migration, run "bundle deploy --var 'job_name=Custom Job Name'". |
| 16 | + |
| 17 | +To undo the migration, remove [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json and rename [TEST_TMP_DIR]/.databricks/bundle/dev/terraform/terraform.tfstate.backup to [TEST_TMP_DIR]/.databricks/bundle/dev/terraform/terraform.tfstate |
| 18 | + |
| 19 | + |
| 20 | +>>> print_state.py |
| 21 | +"Custom Job Name" |
| 22 | + |
| 23 | +>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan --var=job_name=Custom Job Name |
| 24 | +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged |
| 25 | + |
| 26 | +>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle destroy --var=job_name=Custom Job Name --auto-approve |
| 27 | +The following resources will be deleted: |
| 28 | + delete resources.jobs.test_job |
| 29 | + |
| 30 | +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev |
| 31 | + |
| 32 | +Deleting files... |
| 33 | +Destroy complete! |
| 34 | + |
| 35 | +>>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy --var job_name=Custom Job Name |
| 36 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev/files... |
| 37 | +Deploying resources... |
| 38 | +Updating deployment state... |
| 39 | +Deployment complete! |
| 40 | + |
| 41 | +>>> [CLI] bundle deployment migrate --var job_name=Custom Job Name |
| 42 | +Note: Migration should be done after a full deploy. Running plan now to verify that deployment was done: |
| 43 | +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged |
| 44 | +Success! Migrated 1 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json |
| 45 | + |
| 46 | +Validate the migration by running "databricks bundle plan --var 'job_name=Custom Job Name'", there should be no actions planned. |
| 47 | + |
| 48 | +The state file is not synchronized to the workspace yet. To do that and finalize the migration, run "bundle deploy --var 'job_name=Custom Job Name'". |
| 49 | + |
| 50 | +To undo the migration, remove [TEST_TMP_DIR]/.databricks/bundle/dev/resources.json and rename [TEST_TMP_DIR]/.databricks/bundle/dev/terraform/terraform.tfstate.backup to [TEST_TMP_DIR]/.databricks/bundle/dev/terraform/terraform.tfstate |
| 51 | + |
| 52 | + |
| 53 | +>>> print_state.py |
| 54 | +"Custom Job Name" |
| 55 | + |
| 56 | +>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan --var job_name=Custom Job Name |
| 57 | +Plan: 0 to add, 0 to change, 0 to delete, 1 unchanged |
| 58 | + |
| 59 | +>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle destroy --var=job_name=Custom Job Name --auto-approve |
| 60 | +The following resources will be deleted: |
| 61 | + delete resources.jobs.test_job |
| 62 | + |
| 63 | +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/migrate-var-test/dev |
| 64 | + |
| 65 | +Deleting files... |
| 66 | +Destroy complete! |
0 commit comments