Skip to content

Commit e4166ff

Browse files
committed
update
1 parent 69d7150 commit e4166ff

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

acceptance/bundle/migrate/basic/out.original_state.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"parameter": [],
4747
"performance_target": null,
4848
"pipeline_task": [],
49+
"provider_config": [],
4950
"python_wheel_task": [],
5051
"queue": [
5152
{
@@ -192,7 +193,8 @@
192193
"target": null,
193194
"timeouts": null,
194195
"trigger": [],
195-
"url": "[DATABRICKS_URL]/#joblist/pipelines/[UUID]"
196+
"url": "[DATABRICKS_URL]/#joblist/pipelines/[UUID]",
197+
"usage_policy_id": null
196198
},
197199
"sensitive_attributes": [],
198200
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWZhdWx0IjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",

acceptance/bundle/migrate/basic/output.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
>>> musterr [CLI] bundle deployment migrate
3-
This command migrates existing terraform state file (terraform.tfstate) to direct deployment engine state file (resources.json). However, no existing local or remote state found.
3+
This command migrates the existing Terraform state file (terraform.tfstate) to a direct deployment state file (resources.json). However, no existing local or remote state was found.
44

5-
To start using direct engine, deploy with DATABRICKS_BUNDLE_ENGINE=direct env var or bundle.engine="direct" in databricks.yml.
5+
To start using direct engine, deploy with DATABRICKS_BUNDLE_ENGINE=direct env var set.
66

77
>>> DATABRICKS_BUNDLE_ENGINE=terraform [CLI] bundle deploy
88
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/migrate-basic-test/default/files...
@@ -12,6 +12,10 @@ Deployment complete!
1212

1313
>>> [CLI] bundle deployment migrate
1414
Migrated 3 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/default/resources.json
15+
Validate the migration by running "bundle debug plan", there should be no actions.
16+
17+
The state file is not synchronized to the workspace yet. To do that, run "bundle deploy".
18+
1519
To finalize deployment, run "bundle deploy".
1620

1721
>>> ls -1 .databricks/bundle/default/

cmd/bundle/deployment/migrate.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ To start using direct engine, deploy with DATABRICKS_BUNDLE_ENGINE=direct env va
111111
}
112112

113113
cmdio.LogString(ctx, fmt.Sprintf(`Migrated %d resources to direct engine state file: %s
114+
Validate the migration by running "bundle debug plan", there should be no actions.
115+
116+
The state file is not synchronized to the workspace yet. To do that, run "bundle deploy".
117+
114118
To finalize deployment, run "bundle deploy".`, len(deploymentBundle.StateDB.Data.State), localPath))
115119
return nil
116120
}

0 commit comments

Comments
 (0)