New to Astrato Step 1 of 4
Next →Data connections
A data connection gives Astrato access to a database or other source. Once it exists, you can use it when creating a semantic layer. What you can do with an existing connection follows the access granted on it.

Create a connection
Section titled “Create a connection”Before you start: you need a workspace role that can create data connections: Owner, Admin or Creator. A Viewer has a Data item on the rail instead, and never sees New connection; a Designer has no Data & AI item at all. To check your role, select your profile picture at the top right to open the account menu: your role is shown under your name and email. If it is not one of those three, ask a workspace administrator (see How access works).

Have the credentials for your source ready; its guide lists them. One more thing saves a failed validation later:
- Network access. If the database sits behind a firewall, a cloud security group or a Snowflake network policy, it must accept connections from Astrato’s addresses. See Allow Astrato’s addresses.
The pictures below follow one PostgreSQL connection from start to finish. Other sources ask for different fields in steps 2 and 3; Connecting to Snowflake walks the same steps with Snowflake’s screens.
-
Open Data & AI → Data Connections, select New connection and choose your source.


-
Under Authentication, choose an authentication method if the source offers more than one, then enter the credential. PostgreSQL asks for a Username and Password.
-
Under Connection details, enter where the source is. For example:
Source Authentication Connection details Snowflake Private key (Recommended), Sign in with Snowflake or Password (legacy), with Username Account URL, such as ab12345.eu-west-2.aws.snowflakecomputing.comPostgreSQL Username and Password Host, Port (5432 by default), SSL mode ( requireby default) and optional certificatesFor a sign-in method (Snowflake or Databricks OAuth), select a configured connection, select Sign in, and complete authorization in the new window. Existing authorization can be reused; see OAuth connections. DuckDB (MotherDuck) asks only for its service token, so its connection details hold only the Deployment Region: you select its database after validating, from the databases the token can reach.

-
If your workspace shows Deployment Region, you can leave it for now. It sets where queries reach your database from, and so which addresses it must allow, and a Data App cannot be published on this connection until one is chosen; see Choose a Deployment Region.
-
Select Validate Connection. It stays unavailable while a required field is empty, and the form lists those fields after “Still needed:”. Snowflake then offers role and warehouse choices; select a warehouse before saving. Dremio lists its sources once a project is selected. If your token reaches only one project, it is selected automatically.

-
Select the database, review the name and select Save connection.

-
Once the connection exists, select a schema or leave it for later, then select Finish.

What success looks like
Section titled “What success looks like”- After Validate Connection, a Validation result section says “Connected to source in n ms.” and the lists below it fill in with the databases the credential can reach. Until then they read “Available once the connection validates.”
- After Save connection, the panel shows Connection created.
- After Finish, the connection is in the Data Connections list with its name, source, connection details and Deployment Region.
Check that it works
Section titled “Check that it works”A saved connection proves that Astrato could sign in. To see that it can also read your tables, look at them from a semantic layer before you start modelling:
-
In Data & AI → Semantic Layers, select Create, then New Semantic Layer, choose this connection under Datasource and select Create. See Create a semantic layer.
-
In the editor, select Add, then Tables & Views, and open a schema. Its tables are listed from the database, through this connection.

If a schema you expected is missing or opens empty, the database user cannot see it: fix its grants in the source’s guide. To look at rows as well, add a table and use Preview data on its header. Data Preview reads the published layer, so on a new layer it first offers Publish and preview; see Look at the rows.
If something goes wrong
Section titled “If something goes wrong”If validation fails, an error notice at the bottom of the panel usually starts “Connection validation failed” and lists details, usually including a “Source message:” line with the source’s own error. When a data connection will not validate explains each notice, lists the checks to make in order, and covers every other message the panel shows.

A source that cannot be created here is dimmed in the source list. Hover over or focus it to see why; selecting it shows the reason below the list.

Demo data is one of these: Astrato does not offer a hosted sample connection yet. If you have no database credentials and your data is a CSV file, see Bring in a CSV file. Google Sheets connections cannot be created in the new lobby yet: use the old lobby to create one (see Lobby navigation).
Schema browsing happens after the connection is created. If schema lookup fails, retry it or finish and select the source later. The connection already exists; creating another is unnecessary.
A password with leading or trailing spaces is rejected. Use the explicit trim action to remove them before validating again. Private-key and service-account JSON documents have surrounding formatting whitespace removed.

When replacing credentials on an existing connection, Validate Connection tests the new credentials. Successful validation clears errors from loading choices with the old saved credentials and preserves your selected schema. Save the replacement before browsing schemas with it; schema browsing uses the saved connection.

Guides for each source
Section titled “Guides for each source”The steps above are the same for every source. What differs is the credentials it asks for, and what it is capable of once connected. Each source has its own guide:
| Source | Setup guide |
|---|---|
| Snowflake | Connecting to Snowflake |
| Google BigQuery | Connecting to Google BigQuery |
| Databricks | Connecting to Databricks |
| Amazon Redshift | Connecting to Amazon Redshift |
| PostgreSQL | Connecting to PostgreSQL |
| ClickHouse | Creating a connection to ClickHouse, or through its PostgreSQL interface |
| Supabase | Connecting to Supabase |
| DuckDB (MotherDuck) | Connecting to MotherDuck |
| Dremio | Connecting to Dremio Cloud |
| Google Sheets | Connecting to Google Sheets |
Some sources have more to know once the connection works:
- Snowflake: which features Astrato supports, Snowflake functions in Astrato, key-pair authentication, MFA, and warehouse cost and performance.
- Supabase: getting started, connecting it for analytics, and working with edge functions.
- Private networking: AWS PrivateLink and AWS private connections. For a database on Google Cloud or Azure with a private address only, see Databases with a private address.
Astrato also appends metadata to every query it sends, so your warehouse’s own query log can be turned into a usage and cost dataset: Snowflake, BigQuery, ClickHouse and PostgreSQL or Supabase.
Choose a Deployment Region
Section titled “Choose a Deployment Region”If your workspace offers Deployment Region, it is the region your Data Apps are deployed from by default, and the one Astrato’s queries reach your database from. It does not move your database. Choose the region closest to your users and your data source.
A connection left at Legacy / not selected can still carry semantic layers, but a Data App cannot be published on it. You do not have to decide while creating the connection: select the connection in the list later, choose Deployment Region and select Save changes. Your database must accept traffic from the region you choose; the form names the addresses to allow.

How regions route traffic, the bulk Set Deployment Region flow and what MCP does with regions are in Advanced data connection settings.
Dynamic connections
Section titled “Dynamic connections”A dynamic connection uses each viewer’s own connection settings in published workbooks. It is available for Google BigQuery → Service account and ClickHouse → Password. See Dynamic connections for how to set it up.
The Semantic layers column
Section titled “The Semantic layers column”The connection list shows how many semantic layers read each connection, so you can see what depends on a connection before you change or remove it.

A dash (—) means the number is unknown rather than zero: the list of layers could not be read, or a page of it took longer than ten seconds, or the workspace holds more than 2,000 semantic layers, which is as many as Astrato counts.
Creating, duplicating or deleting a semantic layer from Data & AI updates the number straight away. Otherwise counts are reused for about five minutes, so a layer added or removed elsewhere in Astrato can take that long to show here.
Like the matching count in the semantic layer list, this column is shown to workspace owners and administrators only — see Who sees this column for why.
More settings
Section titled “More settings”Advanced data connection settings covers what most people need only later: how Deployment Regions route traffic, dynamic connections, OAuth sign-in from the editor and from MCP, creating a connection through an assistant, and expired or interrupted operations.
What next
Section titled “What next”A connection on its own answers no questions. The next step is a semantic layer built on it.
- Create a semantic layer on this connection.
- Semantic layer workflows to inspect, author, validate, version and publish a layer.
- Manage resource access to let other people build on this connection.
- When a data connection will not validate if validation or saving fails.