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

Connect to Athena

Configure Athena gateways, local development, and production deployment for Vulcan.

With IAM access in place, this is the connect stage. Configure the gateway that lets Vulcan reach Athena, then validate it before writing models.

Flagged for review: the source manual had two steps here that don't carry over to any other converted engine page: a generic "install Vulcan" step with an unresolved wheel-link placeholder ("TBD: attach the wheel link from your DataOS distribution channel"), and a TPCH-style QA-fixture bootstrap (before_all/after_all creating sales/raw databases and an anomalies audit table). Both are left out here as generic/internal content rather than Athena-specific guidance; the wheel link is still unresolved wherever the shared install doc lives.

Set up authentication

Store credentials in .env. Never commit them. The IAM principal needs the grants from Permissions and grants, and its keys must belong to the same account (or a trusted cross-account catalog) as the Glue databases you target.

# .env
AWS_ACCESS_KEY_ID=AKIA...
AWS_SECRET_ACCESS_KEY=...
AWS_REGION=ap-south-1
ATHENA_WORK_GROUP=primary
ATHENA_S3_STAGING_DIR=s3://your-athena-results/
ATHENA_SCHEMA_NAME=<glue-database>
ATHENA_CATALOG_NAME=awsdatacatalog
ATHENA_S3_WAREHOUSE_LOCATION=s3://your-data-bucket/vulcan-warehouse/

Connection options

Set these options under gateways.<name>.connection in config.yaml.

Option
Description
Required

type

Engine type name. Must be athena.

Yes

aws_access_key_id

AWS access key for the Vulcan service principal.

Yes

aws_secret_access_key

AWS secret key.

Yes

region_name

AWS region. Must match the workgroup and buckets.

Yes

work_group

Athena workgroup to run queries in.

Yes

s3_staging_dir

Athena query output location.

Yes

schema_name

Glue database (schema).

Yes

catalog_name

Glue catalog, default awsdatacatalog.

No

s3_warehouse_location

Base s3:// prefix for managed table data.

Yes; required for managed table materialization

Example gateway config

The Athena adapter can persist Vulcan's own state in Iceberg tables inside the warehouse by default. Alternatively, enable state_connection (Postgres) and state_schema for multi-project isolation on shared infrastructure.

Local development

Athena has no local container to run. Development points directly at real AWS resources (a dev workgroup, Glue database, and S3 prefixes), not at a containerized stand-in. The only thing you might run locally is the optional Postgres state store, if you've opted out of the default Iceberg state tables.

Validate the connection:

If vulcan plan succeeds, you'll see models staged for creation.

Production deployment

Production deployment typically projects the instance secret directly into the Vulcan resource's environment.

Apply resources in this order:

Manifest
Purpose
Key fields

athena-secret.yaml (instance secret)

Stores AWS + Athena settings

AWS_*, ATHENA_* keys

secret-git-sync.yaml

Repo credentials

GITSYNC_USERNAME, GITSYNC_PASSWORD

config.yaml

Project config; gateway type: athena

See example above

deploy.yaml (Vulcan resource)

Workflow + API; projects secret into env

engine: athena, use.projection.secrets, repo.*, workflow, api

Example projection block (secret → env on the Vulcan resource):

Before you deploy checklist

Next step

After connection configuration is ready, choose a model strategy in Materialization behavior.

Last updated

Was this helpful?