Alibaba Cloud data source: RDS for PostgreSQL

更新时间:
复制 MD 格式

Connect Quick BI to an Alibaba Cloud RDS for PostgreSQL database as a data source. Once connected, you can analyze and visualize your data in Quick BI. This topic describes how to add an RDS for PostgreSQL data source over the public network or through an Alibaba Cloud VPC.

Prerequisites

You have created an RDS for PostgreSQL instance. For more information, see Create an RDS for PostgreSQL instance.

Background information

You can add an Alibaba Cloud RDS for PostgreSQL database as a cloud data source in Quick BI for data analysis.

You can connect Quick BI to an RDS for PostgreSQL data source over the public network or through an Alibaba Cloud VPC. The configuration steps differ for each network type, as shown in the following figure.网络连通性介绍

To prevent connection failures, you must add the IP addresses for your Quick BI environment to the data source's whitelist. For more information about how to configure a whitelist, see Set up a whitelist.

Limitations

  • Only workspace administrators and developers can add data sources.

  • Quick BI supports PostgreSQL 8.2 and later.

Procedure

  1. Log on to the Quick BI console.

  2. Add a data source by performing the following steps:

    1. Go to the page for creating data sources. For more information, see Create a data source.

    2. On the Alibaba Cloud Databases tab, select RDS for PostgreSQL.image

  3. In the Configure Connection dialog box, configure the following parameters.image

    Parameter

    Description

    Display Name

    The name that appears in the data source list.

    Enter a name that follows your organization's naming conventions. The name cannot contain special characters or leading or trailing spaces.

    Endpoint and Port

    The endpoint and port of your PostgreSQL database. If you are using a VPC data source, enter the internal endpoint and port. Otherwise, enter the public endpoint and port.

    To obtain this information, log on to the RDS console. In the Basic Information section of your instance, click View Connection Details to find the Internal and Public Endpoints and Internal and Public Ports.

    image

    If a public endpoint is not displayed, click Apply for Public Endpoint. For more information, see View or change connection endpoints and ports.申请地址

    Database

    The name of the database that you created in your PostgreSQL instance.

    To find this information, log on to the RDS console. In the Database Management section, find the Database Name.数据库名称

    Schema

    The schema name of your PostgreSQL database.

    Username and Password

    The username and password for your PostgreSQL database.

    VPC Data Source

    If you are connecting through an Alibaba Cloud VPC, select VPC Data Source and configure the following parameters:

    • AccessKey ID and AccessKey Secret: The AccessKey ID and AccessKey Secret of a RAM user with management permissions on the target PostgreSQL database. The user account must have at least read permissions for the target instance. If the account also has write permissions, Quick BI automatically adds its IP addresses to the database whitelist. Otherwise, you must add them manually. For more information, see Create a custom policy.

      You can obtain the AccessKey ID and AccessKey Secret from the RAM console.获取AK

    • Instance ID and Region: The ID of your PostgreSQL instance and the region where it is located.实例id

    Note

    If you select a VPC data source, the database endpoint and port must be the internal endpoint and internal port.

    SSL

    If your data source uses SSL, select this option to encrypt data in transit.

    Initial SQL

    If you enable this option, you can specify SQL statements that run automatically after Quick BI connects to the data source.

    Only SET statements are allowed. Separate multiple statements with semicolons (;).

    Enable File Upload Entry

    When enabled, you can upload files to this data source.

  4. Click Test Connection to verify the connection.

    image

  5. After the test is successful, click OK to add the data source.

Next steps

After you create the data source, you can create datasets and start analyzing your data.