Introducing Instant GraphQL on Amazon Athena
Tags: database, aws
Published: 2022-11-10 14:39:17

---
title: Introducing Instant GraphQL on Amazon Athena
published: true
date: 2022-11-08 16:28:22 UTC
tags: database,aws
canonical_url: https://hasura.io/blog/announcing-amazon-athena-integration/
---

![Introducing Instant GraphQL on Amazon Athena](https://hasura.io/blog/content/images/2022/11/graphql-data-connector-amazon-athena.jpg)

Today marks the beta release of the Amazon Athena GraphQL Data Connector for Hasura. Amazon Athena is a service integrated with AWS Glue Data Catalog providing a unified metadata repository across various services, allowing queries to crawl data sources and discover schema to populate your catalog. Now, with the release of the Hasura GraphQL Data Connector for Athena all of that power comes to Hasura for you to query against!

> **Important** - This initial release of the Hasura GraphQL Data Connector for Amazon Athena is in beta, for read-only queries, and available for Hasura Enterprise Edition (EE) and all Hasura Cloud customers. Once this connector moves to General Availability (GA) it will only be available via Enterprise Edition and Hasura Cloud Enterprise plans.

## Hasura & Amazon Athena Combined!

The combination of these two services can be utilized either through serverless architecture at AWS and Hasura Cloud or with Hasura GraphQL Engine deployed to your own data center or AWS VPC! To set up the connection to Amazon Athena takes the same familiar steps as connecting any data source to Hasura.

Once you’ve gotten a project up and running in Hasura Cloud or Hasura EE, enable the Athena Connector by navigating to `Settings -> Feature Flags` on the Hasura Console. Enable the `Experimental features for GDC`.

![Introducing Instant GraphQL on Amazon Athena](https://hasura.io/blog/content/images/2022/11/experimental-flags-console.png)

Navigate to the Data tab of the console. Then click on the _Connect Database_ button.

![Introducing Instant GraphQL on Amazon Athena](https://lh4.googleusercontent.com/LDCY23HRKsRfmvI9iVXJFmniNUtfCsMJOytousd9-o6MZwwyF6XAtvTMRS2bzQfJb6u9_WvrgHlDffBfWc-66aNfWXtRwTdb-_6eWOpt1FSKqTe0XjIzG-xOT31bcJXMYGVF9XpKU-qv9KzG4GA2pfFL5Jnj4ix2-K0vLp9FmLHYncZ3iJkVCEFPrlwM5w)

Next up select athena(beta) as the _Data Source Driver_.

![Introducing Instant GraphQL on Amazon Athena](https://lh3.googleusercontent.com/sudOxy8Y0GTziIuuhwA0qfqWzMSkZ75IfgOOjUnN1woJ24GSOkEMktk1C8pCt3Uv3wPm8Ug6ZelGOoMqg791TMOY4YspO3Kw5YZii0lDRfOcfJEbQ1Z7erPTPtAQk87cQZmfKok5ujD4bW4w_qdHN34SoeG3oeHwoAoqX5ViXE-8gwrrPfepp5bmO9L9Cg)

Next enter the Database URL and schema for use with Athena.

![Introducing Instant GraphQL on Amazon Athena](https://lh4.googleusercontent.com/3r1sY32Y5Qgb8_nbArDbszP0Rc7m6S0Q5iixcVRpPg-lVnCzEBp43ONSSwPY1pFjov1pDOJe0TwUyyjMGwJrYnDdW47IJHIl8z4Do1u-XGFuQ7LM5cIENNDxAmWveAnxCDuMlhwZSuOrYSepPGIfZwC2EegWsjzN_AimUuQGp9gNIzGtMA7ADVNr_CgFqQ)

Now click on Connect Database. Once Hasura is connected to the database, navigate to select tables to track by clicking on the connection just created for Amazon Athena in the left side pane. You’ll then see the tables that can be tracked for query access.

![Introducing Instant GraphQL on Amazon Athena](https://lh4.googleusercontent.com/lAppaihzmO2Q_s6zXAfYtiog3c_IsiUlxcIg3xAczHS1qmn5gep3gk4liqMSi5ULSg8wSqdqqaUU9mpida2G9yGk5v_FjCojKQnDCmU4746SebKsrcRqdPjdyn73xLWtsXmzFFYGgJGL6ACQfxczLeRGxI-erwY92yiUsxRBvcadlpuPLZzo3-msGopPPQ)

From here you can start querying your Amazon Athena data with GraphQL!

![Introducing Instant GraphQL on Amazon Athena](https://lh5.googleusercontent.com/TUPrmJf6gQ8cP7_fF9VQTy8ylPTw4wtX_jIWLg-yQPAgxIAFGVKbL4IRSDnJS5h_5OGsXj3kDd05R-6hUc8puEcUNOB9FFsJ8AYj7rS7GS-G2VTMit9NMmj6ZgGgm5QjM9idCah8_ZaxYE1ns1QozVu8OmwMbalA0A7ucL53FdTxyBMdrj11sJExE6q6CQ)

## What Scenarios Work Well for Athena and Hasura GraphQL Engine?

To figure out where and what Athena and Hasura give you, let’s quickly recap what each of these two services can provide.

Athena is set up to help analyze unstructured, semi-structured, and structured data stored in S3. This could be all sorts of data structures such as CSV, JSON, Apache Parquet columnar data, and Apache ORC. Athena provides access to all of this by running ANSI SQL queries against this underlying data. To manage all of this and the respective queries Athena integrates with the AWS Glue Catalog, which offers a persistent metadata store for the data in S3. This allows for tables to be created and data to be queried in Athena.

Shifting to Hasura, we provide a way to connect disparate data sources via direct access - like Athena - along with actions, remote schema to other GraphQL APIs, and other mechanisms to provide a singular unified GraphQL API (or REST if desired!). Bringing all of this data together into a singular unified API provides a dramatically faster way to develop web applications and web APIs for consumers, enterprise, and other organizations.

Combining Amazon Athena query capabilities into Hasura with the Hasura GraphQL Data Connector provides a significant increase in capabilities against AWS data stores. By providing Athena a way to integrate, or stand alone, but provide a seamless GraphQL API extends the abilities of Athena to your entire data tier.

## Summary

With this release the value of Athena and Hasura extended dramatically. The ability to more quickly integrate this data into applications around a GraphQL API that unifies their respective data sources is very powerful. While it’s in beta be sure to give it a test drive and try it out for yourselves.

## Want More Athena?

Curious about getting even more out of your Athena connection? Be sure to reach out via [Discord](https://discord.com/invite/hasura) or send a request directly via [Contact Us](http://hasura.io/contact-us) form – we would love to chat about what other capabilities you’d like to get connected to with Athena and Hasura!