This article describes how to connect Tableau to Amazon Athena data and set up the data source.
Note: To connect to Amazon Athena, you need ports 443 (ssl) and 444 to be open.
Before you begin, gather this connection information:
Name of the server that hosts the database you want to connect to. The format should be as follows: athena.[region].amazonaws.com. For example:
Name of the S3 staging directory. For example,
Amazon Web Services (AWS) access keys (access key ID and secret access key). For more information, see Access keys(Link opens in a new window) on the AWS website.
(Optional) Initial SQL statement to run every time Tableau connects
Tip: To support multiple users and work groups, you can add a work group in the server field. For example:
This connector requires a driver to talk to the database. You might already have the required driver installed on your computer. If the driver is not installed on your computer, Tableau displays a message in the connection dialog box with a link to the Driver Download(Link opens in a new window) page where you can find driver links and installation instructions.
Start Tableau and under Connect, select Amazon Athena. For a complete list of data connections, select More under To a Server. Then do the following:
Enter the name of the server.
Enter the name of the S3 staging directory.
Enter your AWS access key ID in the Username field.
Enter your AWS secret access key in the Password field.
(Optional) Select Initial SQL to specify a SQL command to run at the beginning of every connection, such as when you open the workbook, refresh an extract, sign in to Tableau Server or publish to Tableau Server. For more information, see Run Initial SQL.
Select Sign In.
If Tableau can't make the connection, verify that your credentials are correct. If you still can't connect, your computer is having trouble locating the server. Contact your network administrator or database administrator.
On the data source page, do the following:
(Optional) Under Connections, select the default data source.
Select the catalogue and database you want to work with.
Drag one or more tables to your workspace.
Select the sheet tab to start your analysis.
Use custom SQL to connect to a specific query rather than the entire data source. For more information, see Connect to a Custom SQL Query.
Amazon Athena uses a JDBC connection, which you can customise using a properties file. For more information, see Customise JDBC Connections Using a Properties File(Link opens in a new window) in Tableau Community.
- Set Up Data Sources – Add more data to this data source or prepare your data before you analyse it.
- Build Charts and Analyse Data – Begin your data analysis.
- Connect to your S3 data with the Amazon Athena connector in Tableau 10.3(Link opens in a new window) (and later) - Tableau blog post with links to Amazon Athena resources.
- Tableau Desktop Fails To Connect to Amazon Athena through Proxy With Error Code 37CE01A3 - Tableau Knowlege Base article with steps for resolving the issue.