Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Athena

The full technical reference for building and running a Data Product on Amazon Athena, covering connection, IAM permissions, materialization, operations, performance, and troubleshooting.

Amazon Athena is a serverless, Presto/Trino-family query engine over data registered in the AWS Glue catalog. Vulcan runs against Athena to manage transformations with version control and gated deployments. This page is the full manual: it covers how you connect, what IAM permissions you need, how each model kind materializes, how to set operational guardrails, and how to recover from the failures you are most likely to hit.

When to use

Choose Athena when your data already lands in S3 as Parquet or Iceberg and is registered in Glue, and you want serverless, pay-per-scan SQL rather than a cluster to manage. Athena suits teams standardized on the AWS data stack who want to avoid running warehouse infrastructure, at the cost of per-query scan-based billing instead of cluster hours.

Athena has no SQL GRANT statements. Access is enforced through AWS IAM (and optionally Lake Formation) on Glue databases/tables and the underlying S3 prefixes, not through database-side grants.

Supported Model Kinds

FULL, VIEW, INCREMENTAL_BY_TIME_RANGE, INCREMENTAL_BY_UNIQUE_KEY, and INCREMENTAL_BY_PARTITION. Validate incrementals at your data volume. Python models run on the Athena adapter's pandas path where supported; validate against your specific Vulcan image before using them in production.

Engine Characteristics

Property
Value

Engine adapter type

athena

Model dialect

athena

Support level

GA (SQL + Glue catalog path; validate Python models per image)

Execution vehicle

Athena workgroup; queries via PyAthena / the AWS API

Catalog

Glue: default awsdatacatalog; set catalog_name in the connection

Database (schema)

Glue database: schema_name / ATHENA_SCHEMA_NAME

Warehouse storage

s3_warehouse_location (required for managed tables)

Query results

s3_staging_dir (Athena query output location)

Identifier casing rule

Match semantic model identifiers to physical column casing (often lowercase snake_case)

Auth (local / CI)

IAM access key + secret, or a role chain per your org standard

Auth (DataOS)

Instance secret → env projection on the Vulcan resource

Once you choose Athena as your Data Product engine, use this guide to explore Authorize, Connect, Build, Serve, Operate, and Troubleshoot: covering access, connectivity, model development, data serving, performance, and issue resolution.

Depending on where you are starting from, you may enter this path at a different point.

Authorize

Access setup is required before gateway configuration.

Provision AWS IAM and DataOS access before configuring a gateway or deploying a Data Product. See Permissions and grants for the IAM role breakdown, minimum capabilities, required DataOS permissions, and the pre-connect checklist.

Connect

This is the first hands-on step after access provisioning.

For connection options, gateway configuration, local development, and production deployment, see Connect to Athena.

Build Models

Choose a model strategy after you validate the connection.

For model design, Athena-native behavior, support boundaries, and required AWS resources, see Materialization behavior.

Serve

Endpoints

Use endpoints to make deployed Data Product data available to consumers.

Every deployed Data Product on Athena gets REST, GraphQL, and MySQL-wire endpoints, all pushing down to the same Athena gateway. Keep api.resources.limits.memory at 3 GiB for large result sets.

MCP Tools

MCP tool
Athena behavior

about

Static; no engine call

lineage

Parsed graph; no live Athena query

quality

Last check/audit results; typically no live call

data

Live Athena query; consumes scanned-byte capacity

run

Triggers workflow; same cost as a scheduled run

activity

Reads workflow history from DataOS; no engine call

Treat agent-driven data tool queries like production dashboard queries: each one scans bytes and counts against your workgroup's cost and concurrency limits.

Metadata Scanning and Catalog

DataOS scans AWS Glue (and optionally Athena query history, depending on scanner configuration) for discovery and governance.

Object
Catalog
Lineage

Glue databases

✓

N/A

Tables, views

✓

✓ as nodes

Columns

✓

✓ column-level

S3 external locations

✓ via table params

✓ when parsed

Use a read-only IAM principal distinct from the Vulcan service role:

Area
Actions (illustrative)

Glue

glue:GetDatabase, glue:GetDatabases, glue:GetTable, glue:GetTables

S3

s3:GetObject, s3:ListBucket on published prefixes only

Scanner cadence is instance-configurable, often every 6 to 12 hours. Glue changes appear after the next scan.

Operate Safely

Set workload limits before scaling consumers or production schedules.

For compute sizing, concurrency, scheduling, cost guardrails, and performance guidance, see Limits and performance.

Before Production

  • Confirm least-privilege IAM for the service, scanner, and consumer principals.

  • Validate the gateway.

  • Set workgroup concurrency and API replica limits.

  • Test recovery procedures.

Troubleshooting

Use these checks when configuration, deployment, or runtime behavior needs investigation.

For failure modes, health checks, and recovery procedures, see Troubleshooting.

Start Faster with a Recipe

Skip tuning from a blank slate. Deployment recipes has a daily-incremental Kimball shape, a split build-vs-query workgroup pattern, first-time backfill guidance, and the local full-stack commands.

Full Implementation Example

Use this complete Athena Data Product as a production-shaped starting point.

Open

Last updated

Was this helpful?