Skip to main content
Matik Help Center home page Help Center
Matik Blog Case Studies
  1. Matik
  2. Building Templates
  3. Data Sources

Connecting to Data Warehouses

Best Practices

Having reliable data sources with strong data governance will improve the end user and admin experiences. It is recommended to create a Matik user profile instead of connecting to an existing user. This prevents you from having to re-enter credentials if user changes occur and also limits table ACLs to Matik-specific content.

 

Presto

presto.png

 

 

Redshift

redshift.png

 

 

Athena

athena.png

You may also access Athena using role-based authentication. In this case, your enterprise doesn't need to create another user in their AWS instance but instead can create a specific role that Matik can assume in order to access the data. The step-by-step instructions are as follows:

1. Navigate to the "Data Sources" tab in Matik.
2. Click the "Add Data Source" button
3. Select "Athena" from the Data Source Type dropdown.
4. Navigate to the bottom of the data source and click "Access via role"
5. Copy Matik's account id.
6. In the AWS console, navigate to the IAM service and click the "Create Role" button.
7. Under the trusted entity type selection, select AWS Account.
8. Under the "An AWS Account" heading, select "Another AWS Account" and paste the copied Matik account id into the field.
9. Click the "Require external id" checkbox under the options section.
10. Navigate to Matik, copy the external ID from the data source form and enter it into the external id field.
11. Add permission policies to the role to give it access to the right resources in your AWS instance. Matik will need access to Athena as well as S3 for dealing with query results.
12. Give the role a name and optional description and create it.
13. Navigate to the role that you created in step 12 and copy the arn.
14. Navigate to Matik and copy the role arn into the field.
15. Finish filling out the data source form in Matik with the rest of the information for the Athena connection and click "Test Connection" to ensure everything is working.

 

 

Google BigQuery

mceclip2.png

When using Google BigQuery please ensure the IAM user you are using for your Matik connection has the BigQuery role permissions: "BigQuery Data Viewer" and "BigQuery Metadata Viewer".

You may use either OAuth2 or "Service Account Info" as your Google authentication method. If using your Google Cloud Service Account info, you will need to enter a Service Account JSON when adding your data source.

mceclip3.png

Your "Service Account JSON" should be in the following format:

{
  "type": "service_account",
  "project_id": "PROJECT_ID",
  "private_key_id": "KEY_ID",
  "private_key": "-----BEGIN PRIVATE KEY-----\nPRIVATE_KEY\n-----END PRIVATE KEY-----\n",
  "client_email": "SERVICE_ACCOUNT_EMAIL",
  "client_id": "CLIENT_ID",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://accounts.google.com/o/oauth2/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/SERVICE_ACCOUNT_EMAIL"
}
This can be downloaded from the "Service Accounts" section of your Google Cloud Console.

See this article for more information about creating and managing Service Accounts in Google.

 

 

PostGres

postgresql.png

 

 

MySQL

mysql.png

 

 

Snowflake

snowflake.png

 

 

Databricks

databricks_data_source.jpg

Was this article helpful?

Have more questions? Submit a request

Related articles

  • Data Sources Overview
  • Connecting to CRMs (Salesforce, Hubspot, Gainsight)
  • Connecting to Rest APIs
  • Dynamic Content Overview
  • Connecting to BI Tools (Tableau, Looker)

Articles in this section

  • Connecting to an Excel File
  • Data Sources Overview
  • Connecting to Google Sheets
  • Connecting to Data Warehouses
  • Connecting to CRMs (Salesforce, Hubspot, Gainsight)
  • Connecting to Rest APIs
  • Connecting to BI Tools (Tableau, Looker)

Comments

0 comments

Please sign in to leave a comment.

Personalize data-driven content in minutes

Product

  • How it Works
  • Security

Solutions

  • Sales
  • Customer Success
  • Ops & Strategy
  • Data

Resources

  • Blog
  • Case Studies
  • Help Center

Company

  • About Us
  • Careers
  • Terms of Service
  • Privacy Policy

© 2022 Matik, Inc.