Skip to content

Databases & warehouses

Amazon Athena analytics: ask about the data in your S3 lake

Amazon Athena is AWS’s serverless SQL query service. It runs Trino-based SQL directly against files in Amazon S3, such as Parquet, ORC, JSON and CSV, and against Apache Iceberg tables, using the AWS Glue Data Catalog for table definitions. Data and platform teams use it for log analysis, data lake reporting and ad hoc questions without running a cluster. SQL queries are billed by the amount of data scanned.

Amazon Athena

Available now: Nexatron answers Amazon Athena questions with user-level access that inherits your existing Amazon Athena permissions.

Updated

Can Claude, ChatGPT or Copilot access Amazon Athena data?

Yes. To connect Claude, ChatGPT or Copilot to Amazon Athena, add Nexatron from Claude’s connector directory, or by its MCP server URL in ChatGPT and Copilot. Then connect it in Nexatron. Users sign in with their own Amazon Athena account (or your SSO), and Nexatron inherits their existing permissions.

What Amazon Athena data a question reads

Glue Data Catalog databases and tables
Table definitions over S3 prefixes: columns, partition keys such as dt or region, file format and location. These are the tables a question reads.
Partitions and partition projection
The partition values registered for each table, or the projection rules that compute them, which decide how much data a query has to scan.
Apache Iceberg tables
Transactional tables with snapshots and schema evolution, often holding curated facts like orders, events or billing lines.
Views
Saved SQL views that define business logic, such as an active customers view over raw event files.
Workgroups and query executions
Workgroups separate teams and enforce per-query scan limits. Each query execution records its SQL, state, run time and bytes scanned.
Common S3 datasets
AWS Cost and Usage Reports, CloudTrail logs, ALB and CloudFront access logs, and application event exports are frequent Athena sources.

Amazon Athena questions people ask

  • What was our AWS spend by service and linked account last month, from the Cost and Usage Report table?
  • Which customer IDs generated the most 5xx responses in yesterday’s load balancer logs?
  • How many daily active users did the events table record each day this month, by platform?
  • Which IAM principals made DeleteBucket or PutBucketPolicy calls in CloudTrail this week?
  • Which workgroup scanned the most terabytes in the last 30 days, and what did that cost?
  • Which Glue tables have no partitions defined but are queried every day?
  • What were the slowest Athena queries yesterday by run time, and how much data did each scan?

Who asks Amazon Athena questions

Data and analytics teams
Business metrics held in S3 tables, such as orders, sessions or billing lines, without writing partition filters by hand.
Cloud cost and FinOps
Spend by service, account, tag and usage type from the Cost and Usage Report, and what Athena itself costs by workgroup.
Security and operations
Who did what in CloudTrail, and which clients produced errors in access logs, over a stated time window.

How Nexatron connects to Amazon Athena

API and sign-in
The Athena API (StartQueryExecution, GetQueryResults) and the Athena JDBC and ODBC drivers, signed with AWS IAM credentials. Access can be federated for each user through IAM Identity Center, and Lake Formation permissions apply to Glue catalog tables.
User-level access
Users sign in with their own Amazon Athena account (or your SSO), and Nexatron inherits their existing permissions. Users only see data they are already authorized to see.
Read-only
Questions only read Amazon Athena; asking a question never changes Amazon Athena data.
Setup
An administrator enables Amazon Athena in Nexatron. Users link their own Amazon Athena account, or sign in through your SSO, the first time they ask. Queries run in Amazon Athena, with no warehouse to load.

Amazon Athena in Claude’s connector directory

Nexatron is listed in Claude’s MCP connector directory, so a Claude user can add it without a custom server URL. Its hosted MCP server answers Amazon Athena questions for Claude, ChatGPT and Microsoft Copilot with user-level access, and the same governed answer as the Nexatron app. It is Nexatron’s own server, not one published by the vendor.

  1. Connect Amazon Athena to your Nexatron workspace.
  2. In Claude, add Nexatron from Claude’s connector directory. In ChatGPT or Copilot, add a custom MCP connector with Nexatron’s server URL.
  3. Sign in with your own Nexatron identity (OAuth 2.1), then ask your Amazon Athena questions.

Server URL for a custom connector: https://api.nexatron.io/api/v1/mcp

Amazon Athena questions and answers

When does querying S3 with Athena make sense instead of loading a warehouse?
When the data already sits in Amazon S3 and you want standard SQL with no servers to manage. Common uses are log analysis, cost reporting on the Cost and Usage Report, and querying data lake tables in Parquet or Iceberg format.
How is Athena query cost calculated?
SQL queries are charged per terabyte of data scanned, with a small minimum per query; provisioned capacity is an alternative for steady workloads. Partitioning, columnar formats like Parquet and selecting only needed columns reduce the bytes scanned.
How do applications run Athena queries programmatically?
The Athena API starts queries, polls their state and fetches results, and AWS publishes JDBC and ODBC drivers for BI tools. Both authenticate with IAM credentials, including temporary credentials from federated sign-in.
How does Nexatron keep Athena scans under control?
Questions run in a workgroup your administrator chooses, so its per-query scan limit applies. Nexatron adds partition filters where a question names a period, and each answer reports the bytes scanned.