Creating a dataset using Amazon Athena data
Use the following procedure to create a new dataset that connects to Amazon Athena data or to Athena Federated Query data.
To connect to Amazon Athena
-
Begin by creating a new dataset. Choose Datasets from the navigation pane at left, then choose New dataset.
-
-
To use an existing Athena connection profile (common), scroll down to the FROM EXISTING DATA SOURCES section, and choose the card for the existing data source that you want to use. Choose Create dataset.
Cards are labeled with the Athena data source icon and the name provided by the person who created the connection.
-
To create a new Athena connection profile (less common), use the following steps:
-
In the FROM NEW DATA SOURCES section, choose the Athena data source card.
-
For Data source name, enter a descriptive name.
-
For Athena workgroup, choose your workgroup.
-
Choose Validate connection to test the connection.
-
Choose Create data source.
-
(Optional) Select an IAM role ARN for queries to run as.
-
-
-
On the Choose your table screen, do the following:
-
For Catalog, choose one of the following:
-
If you are using Athena Federated Query, choose the catalog you want to use.
-
Otherwise, choose AwsDataCatalog.
-
-
Choose one of the following:
-
To write a SQL query, choose Use custom SQL.
-
To choose a database and table, choose your catalog that contains your databases from the dropdown under Catalog. Then, choose a database from the dropdown under Database and choose a table from the Tables list that appears for your database.
-
If you don't have the right permissions, you receive the following error message: "You don't have sufficient permissions to connect to this dataset or run this query." Contact your QuickSight administrator for assistance. For more information, see Authorizing connections to Amazon Athena.
-
-
Choose Edit/preview data.
-
Create a dataset and analyze the data using the table by choosing Visualize. For more information, see Visualizing data in Amazon QuickSight.