Visualizing table data with QuickSight (original) (raw)
QuickSight is a fast business analytics service to build visualizations, perform ad hoc analysis, and quickly get business insights from your data. QuickSight seamlessly discovers AWS data sources, enables organizations to scale to hundreds of thousands of users, and delivers fast and responsive query performance by using the QuickSight Super-fast, Parallel, In-Memory, Calculation Engine (SPICE). For more information, see What is QuickSight? in the QuickSight user guide.
After you Integrate your table buckets with AWS analytics services, you can create data sets from your tables and work with them in QuickSight using SPICE or direct SQL queries from your query engine. QuickSight supports Athena as a data source for S3 tables.
Configure permissions for QuickSight to access tables
Before working with S3 table data in QuickSight you must grant permissions to the QuickSight service role, the QuickSight admin user, and grant Lake Formation permissions on the tables you want to access.
Grant permissions to the QuickSight service role
When set up QuickSight for the first time in your account, AWS creates a service role that allows QuickSight to access data sources in other AWS services, such as Athena or Amazon Redshift. The default role name is aws-quicksight-service-role-v0
.
- Open the IAM console athttps://console.aws.amazon.com/iam/.
- Choose Roles and select the QuickSight service role. The default name is
aws-quicksight-service-role-v0
- Choose Add permissions and then Create inline policy.
- Select JSON to open the JSON policy editor, then add the following policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "glue:GetCatalog",
"Resource": "*"
}
]
}
- Choose Next, enter a Policy name and then Create policy.
To configure permissions for the QuickSight admin user
- Run the following AWS CLI command to find the ARN of your QuickSight admin user.
aws quicksight list-users --aws-account-id 111122223333 --namespace default --region region
- Grant Lake Formation permissions to this ARN. For details, see Granting Lake Formation permissions on your table resources.
Using table data in QuickSight
You can connect to table data using Athena as a data source.
Prerequisites
- Sign in to your QuickSight account at https://quicksight.aws.amazon.com/
- In the dashboard, choose New analysis.
- Choose New dataset.
- Select Athena.
- Enter a Data source name, then choose Create data source.
- Choose Use custom SQL. You will not be able to select your table from the Choose your table pane.
- Enter an Athena SQL query that captures the columns you want to visualize, then choose Confirm query. For example, use the following query to select all columns:
SELECT * FROM "s3tablescatalog/table-bucket-name".namespace.table-name
- Choose Visualize to analyze data and start building dashboards. For more information, see Visualizing data in QuickSight and Exploring interactive dashboards in QuickSight