Cross-cloud deployment
DataWorks lets you bundle objects like nodes, functions, resources, and components into a deployment package for unified deployment. For a cross-cloud deployment—moving assets between different accounts, regions, or cloud platforms such as Alibaba Finance Cloud or Alibaba Gov Cloud—you create and download a deployment package from the source workspace, then import and deploy it to the destination workspace.
Use cases
This feature is for workspaces using legacy Data Studio to migrate objects like nodes, functions, resources, and components from a source workspace to a destination workspace across different accounts, regions, or cloud platforms (for example, Alibaba Finance Cloud or Alibaba Gov Cloud).
To ensure tasks run correctly in the destination workspace, read Deployment change logic to understand the mapping logic between the source and destination workspaces before you proceed.
Limitations
Permission requirements
You need permissions for both the source and destination workspaces to perform a cross-cloud deployment. For more information about how to add members to a workspace and grant permissions, see Manage permissions for workspace-level modules.
Environment requirements
The following table describes the environment requirements for a cross-cloud deployment from a source workspace to a destination workspace.
|
Source workspace |
Destination workspace |
||||
|
Workspace mode |
Data Studio version |
Basic mode New Data Studio |
Basic mode Legacy Data Studio |
Standard mode New Data Studio |
Standard mode Legacy Data Studio |
|
basic mode |
|
|
|
|
|
|
|
|
|
|
||
|
standard mode |
New Data Studio |
|
|
|
|
|
legacy Data Studio |
|
|
|
|
|
Deployment process
For a cross-cloud deployment, after you create a deployment package, you must manually download it to your local machine and then import it into the destination workspace for deployment.
Procedure in the source workspace
Step 1: Create a deployment environment
When you deploy nodes from the source workspace to the destination workspace, the destination is a completely new deployment environment. Therefore, you must map information such as engine instances, resource groups, and dependencies from the source to the destination. After the mapping is configured, the system automatically replaces the environment used by the deployed nodes with the mapped environment information when you deploy a deployment package, without requiring additional configuration in the destination workspace.
Only members with the Workspace Administrator role can create and configure a deployment environment.
1. Go to Deployment Center
Log on to the DataWorks console. In the target region, click in the left-side navigation pane. Select a workspace from the drop-down list and click Go to Management Center.
In the upper-left corner of the page, click the
icon and choose All Products > More > Deployment Center to go to Deployment Center.
2. Configure the deployment environment
-
On the Deployment Center page, click Deployment Environment Management in the left-side navigation pane.
-
Click Create Deployment Environment and configure the environment information.
-
-
Click Create to create the deployment environment.
-
Step 2: Commit a node
On the node editing page in Data Studio, click the Commit (
) button in the top toolbar.
Step 3: Create a deployment package
-
After you enter any DataWorks module, click the
icon in the upper-left corner of the page and select All Products > More > Deployment Center to open the Deployment Center. -
In the left-side navigation pane, click Nodes to Deploy to view the objects that are ready for deployment. In the Actions column for an object, click Add to Deployment Package. After you add an object, the number of objects in the package is displayed on the View Deployment Package button.
NoteYou can also select multiple objects and click Batch Add to Deployment Package at the bottom of the page.
-
After you add objects to the deployment package, click View Deployment Package to confirm that the objects in the package are correct. You can click Remove to remove any unwanted objects from the package.
NoteCurrently, you can view only objects from legacy Data Studio. Objects from New Data Studio cannot be viewed.
-
On the Pending Deployment page, click Deployment Package Creation and follow the on-screen instructions to create the package.
Step 4: Download the deployment package
-
Using an account with the Operator or Workspace Administrator role, navigate to the Deployment Center of the source workspace.
You can enter any DataWorks module, click the
icon in the upper-left corner of the page, and select All Products > More > Deployment Center to open the Deployment Center. -
In the left-side navigation pane, click Deployment Packages to view the generated deployment packages.
-
In the Actions column of the target deployment package, click Download to download the package to your local machine.
NoteA deployment package is retained for only 30 days after creation. Download it promptly, as expired packages cannot be downloaded and must be recreated.
After you download the deployment package, you need to import it into the destination workspace for deployment.
Procedure in the destination workspace
Step 1: Import the deployment package
-
Go to the Deployment Center page of the destination workspace. In the left-side navigation pane, click Nodes to Deploy to navigate to the Nodes to Deploy page.
-
In the upper-right corner of the page, click Import Deployment Package to open the import panel.
NoteIf you cannot find this button on the Nodes to Deploy page, check whether your workspace has New Data Studio enabled. Workspaces with New Data Studio enabled do not support cross-cloud deployment.
You can upload a package from a local file or from Object Storage Service (OSS).
A warning message at the top of the dialog box states that a first-time deployment overwrites any task with the same name in the same directory. You must confirm this to proceed. The form requires a Deployment Package Name and an optional description.
-
Local file: Directly upload the downloaded deployment package. You can use this method if the package is 30 MB or smaller.
NoteThe maximum file size for a local file upload is 30 MB.
-
OSS upload: You must first upload the downloaded deployment package to OSS and then obtain its storage address. You must use this method if the package size exceeds 30 MB.
To upload the deployment package to OSS, see Upload objects. To obtain the OSS storage address, see Obtain the URL of an object.
-
Step 2: Deploy the package
Once the package is uploaded, click Preview Deployment Package to review the environment and object list. If the information is correct, click Deploy.
The first deployment of a task overwrites any existing task in the destination workspace that has the same name. Confirm that this is your intended action before proceeding.
Step 3: View the deployment results
-
After the cross-cloud deployment package is deployed, you can navigate to the Deployment Packages page of the destination workspace to view the deployment results.
-
If the deployment is successful, you can navigate to the Operation Center of the destination workspace to view the deployed tasks.