All Products
Search
Document Center

DataWorks:,

Last Updated:Apr 15, 2026

To use DataWorks to develop and manage tasks for your AnalyticDB for PostgreSQL instance, you must first associate the instance with DataWorks as an AnalyticDB for PostgreSQL computing resource. After you associate the AnalyticDB for PostgreSQL instance, you can use this computing resource in DataWorks for operations like data synchronization and data development.

Prerequisites

  • You have created an AnalyticDB for PostgreSQL instance.

    Note

    When you purchase an AnalyticDB for PostgreSQL instance, select the same Region as your DataWorks workspace.

  • A workspace has been created in DataWorks, and the RAM user performing the operation has been added to the workspace and granted the Workspace Administrator role.

  • You have associated a resource group with the workspace and established network connectivity.

Limitations

  • Supported regions: China (Hangzhou), China (Shanghai), China (Beijing), China (Shenzhen), China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), and Indonesia (Jakarta).

  • Permissions:

    Operator

    Required permissions

    Alibaba Cloud account

    No additional permissions are required.

    RAM user/RAM role

    To create a computing resource, you must be a workspace member with the O&M or Workspace Administrator role, or have the AliyunDataWorksFullAccess permission. For more information, see Grant a user the permissions of a workspace administrator.

DataStudio: Associate an AnalyticDB for PostgreSQL computing resource

This section describes how to associate an AnalyticDB for PostgreSQL computing resource with a Use Data Studio (New Version).

Go to the computing resources page

  1. Log on to the DataWorks console. Switch to the target region, then in the navigation pane on the left, click More > Management Center. Select the target workspace from the drop-down list and click Go to Management Center.

  2. In the navigation pane on the left, click Computing Resources.

Associate an AnalyticDB for PostgreSQL computing resource

On the Computing Resource list page, configure an AnalyticDB for PostgreSQL computing resource.

  1. Select the computing resource type.

    1. Click Associate Computing Resources to go to the Associate Computing Resources page.

    2. On the Associate Computing Resources page, select AnalyticDB for PostgreSQL as the computing resource type to go to the Bind AnalyticDB for PostgreSQL Computing Resource configuration page.

  2. Configure the AnalyticDB for PostgreSQL computing resource.

    On the Associate AnalyticDB for PostgreSQL Computing Resource page, configure the parameters as described in the following table.

    Parameter

    Description

    Configuration mode

    Select Alibaba Cloud Instance Mode.

    Alibaba Cloud account

    Select Current Alibaba Cloud Account.

    Instance

    Select the AnalyticDB for PostgreSQL instance that you want to associate. You can also click Create in the drop-down list to create an AnalyticDB for PostgreSQL instance.

    Database name

    Enter the name of the database that you use.

    Username and password

    The username and password for an account that can access the AnalyticDB for PostgreSQL instance. If you do not have an account, you can create a privileged account.

    Computing resource name

    Enter a name for the computing resource. This name is used to select the resource when you run a task.

  3. Test the connectivity.

    In the connection configuration section, select the resource group that DataWorks uses to run AnalyticDB for PostgreSQL tasks, and then click Test Connectivity to verify that the resource group can access your AnalyticDB for PostgreSQL instance. For more information, see Overview of network connection solutions.

  4. Click Confirm to complete the configuration.

    Note

    When you associate an AnalyticDB for PostgreSQL computing resource, the system automatically creates an AnalyticDB for PostgreSQL data source with the same name on the Data Sources page of the current workspace.

Legacy Data Development: Associate an AnalyticDB for PostgreSQL computing resource

This section describes how to associate an AnalyticDB for PostgreSQL computing resource with a workspace that does not Use Data Studio (New Version).

Go to the computing resources page

  1. Go to the DataStudio page.

    Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose Data Development and O&M > Data Development. On the page that appears, select the desired workspace from the drop-down list and click Go to Data Development.

  2. In the navigation pane on the left, click the image icon to open the Computing Resources page.

Associate an AnalyticDB for PostgreSQL computing resource

  1. Select the computing resource type.

    1. Click Create Computing Resource to go to the Create Computing Resource page.

    2. On the Create Computing Resource page, select AnalyticDB for PostgreSQL as the computing resource type to open the Create Computing Resource configuration page.

  2. Configure the AnalyticDB for PostgreSQL computing resource.

    On the Create Computing Resource page, configure the parameters as described in the following table.

    Parameter

    Description

    Data source name

    Enter a custom name for the computing resource. This name is used to select the computing resource when you run a task.

    Configuration mode

    Select Alibaba Cloud Instance Mode.

    Note

    You cannot associate a computing resource with the current workspace in User-created Data Store with Public IP Addresses; you can only add it as a data source.

    Alibaba Cloud account

    Select Current Alibaba Cloud Account.

    Note

    If you use Connection String Mode, enter the information about the other account as prompted on the page.

    Instance

    Select the AnalyticDB for PostgreSQL instance that you want to associate. If no instance exists, you can create an AnalyticDB for PostgreSQL instance.

    Database name

    Enter the name of the database that you use.

    Username and password

    The username and password for an account that can access the AnalyticDB for PostgreSQL instance. If you do not have an account, you can create a privileged account.

    Authentication method

    Select an authentication method for accessing the AnalyticDB for PostgreSQL instance.

    • No Authentication: No other operations are required.

    • SSL Authentication: If you select this method, you must configure SSL encryption for the AnalyticDB for PostgreSQL instance and download the certificate file for subsequent verification.

    Truststore certificate file

    If you select SSL Authentication, click Add authentication document below and upload the .pem file from the certificate folder that you downloaded from the Data Security page of your AnalyticDB for PostgreSQL instance.

  3. Test the connectivity.

    In the connection configuration section, select the resource group that DataWorks uses to run AnalyticDB for PostgreSQL tasks, and then click Test Connectivity to verify that the resource group can access your AnalyticDB for PostgreSQL instance. For more information, see Overview of network connection solutions.

  4. Click Create and Associate Computing Resource with DataStudio to complete the configuration.

    Note

    When you associate an AnalyticDB for PostgreSQL computing resource, the system automatically creates an AnalyticDB for PostgreSQL data source with the same name on the Data Sources page of the current workspace.

Appendix

The User-created Data Store with Public IP Addresses supports binding to data sources, but not to computing resources. You can use User-created Data Store with Public IP Addresses to configure an AnalyticDB for PostgreSQL data source.

Parameter

Description

JDBC URL

Format: jdbc:postgresql://ServerIP:Port/Database.

ServerIP: The internal endpoint of the AnalyticDB for PostgreSQL instance.

Port: The port of the internal endpoint of the AnalyticDB for PostgreSQL instance. Default value: 5432.

Database: The name of the database that you use.

Username and password

The username and password for an account that can access the AnalyticDB for PostgreSQL instance. If you do not have an account, you can create a privileged account.

Next steps