You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmdio.LogString(ctx, `This command migrate existing terraform state file to direct deployment engine state. However, no existing local or remote state found.
60
+
61
+
To start using direct engine, deploy with DATABRICKS_BUNDLE_ENGINE=direct env var or bundle.engine="direct" in databricks.yml.`)
62
+
returnroot.ErrAlreadyPrinted
61
63
}
62
64
63
-
if*b.DirectDeployment {
64
-
returnerrors.New("already using direct engine")
65
+
ifstateDesc.IsDirect {
66
+
returnfmt.Errorf("already using direct engine\nDetails: %s", stateDesc.String())
65
67
}
66
68
67
69
terraformResources, err:=terraform.ParseResourcesState(ctx, b)
@@ -88,10 +90,9 @@ proper state management as it may cause resource conflicts.`,
88
90
returnfmt.Errorf("failed to create deployment plan: %w", err)
89
91
}
90
92
91
-
// Create direct state with resource IDs from terraform
92
93
directDB:= dstate.Database{
93
-
Serial: int(opts.Winner.Serial+1),// Increment serial (convert int64 to int)
0 commit comments