Direct Connections
With a direct connection, Cluvio establishes a network connection directly to a database with a public IP address.
For database types which are not "cloud-native" (i.e. can be self-hosted), using Cluvio Agents to connect is generally preferred, since you do not need to expose your database to the internet. With Cluvio Agents you can even securely connect to databases on a local computer with internet access.
Database Server Setup
In order to connect directly to your database, there are a few requirements:
-
The database needs to be reachable via a public DNS hostname or IP address. In most cases you will not be able to connect to a database running on your PC/laptop directly, using
localhost
,127.0.0.1
or IP address behind a NAT router or within a private network on a cloud provider (typically IP addresses starting with192.*
,172.*
,10.*
). You also cannot use Windows WORKGROUP names (typically from ODBC strings for Microsoft SQL Server). For most of these cases, use a Cluvio Agent instead. -
The database needs to be accessible to Cluvio's servers. See firewall setup.
-
For certain databases such as MySQL or MariaDB, the permission of the IP addresses may also need to be specified in the
GRANT
permissions for the database user used.
Since the database-specific protocol will be used, you should make sure to
enable/enforce encryption within your database configuration and select Require SSL
in the datasource configuration in Cluvio. For the following databases the
communication is always encrypted: Redshift, BigQuery, Snowflake, Athena and
Databricks.
Firewall Setup
With direct connections, Cluvio's query executors connect to your database with
one of the following IP addresses, depending on your Account Location
(found
in the Admin Settings). The
firewall of your database must allow inbound connections from these IP addresses.
EU:
52.58.9.34
52.58.26.238
52.58.98.150
US:
52.10.232.238
52.27.71.53
54.200.39.48
If your database runs on AWS, you can add the applicable three IPs to your Security Group inbound rules that guard access to the database (e.g. RDS, Redshift, or your own EC2 instance).
Datasource Configuration
When you have set up your database server and the necessary firewall rules,
you can configure your datasource. Open the datasource connection configuration
and select Direct Connection
as the connection mode.
Test your datasource connection by selecting Test Connection
.