Amazon Athena vs Trino

Athena is managed Trino billed per terabyte scanned or by capacity. Self-hosted Trino trades that bill for your own servers, catalog and operating effort, and opens connectors and fault-tolerant execution that Athena does not offer.

On this page

Amazon Athena vs Trino: when each fits and what the decision turns on

If your Athena bill or its per-query model is under review, the first question is whether you want the same engine run by your own team. Athena's engine is built with Trino, so this is not a choice between two query technologies. It is a choice about who operates the engine, which connectors and execution features you need, and whether you have people to run a cluster. Athena suits low or bursty query volumes with no platform staff, because AWS runs the service and you pay per query. Self-hosted Trino suits steady heavy use, many sources outside S3, residency rules that keep compute and data in your own environment, or a need for retries on long batch queries.

Connector scope and fault tolerance are the features that most often decide the outcome. Trino ships with a large connector catalog, including PostgreSQL, MySQL, Redshift, Snowflake, Iceberg and Delta Lake, so federated sources can be queried without the Lambda-based connectors Athena uses. Fault-tolerant execution is off by default in Trino and is enabled with a retry-policy setting of QUERY or TASK. The TASK policy needs an exchange manager spooling to object storage, so confirm which storage you will use and whether your team can operate it. Confirm also which features your current Athena workloads depend on, such as Iceberg time travel, since the exact Athena engine version you use determines which clauses are available.

Before you choose, decide on the factors that drive the answer: monthly scanned volume and how often the same data is queried, the number of non-S3 sources, your residency and access control requirements (Trino supports password, LDAP, OAuth 2.0, Kerberos, certificate and JWT authentication, with file-based, Apache Ranger or Open Policy Agent access control), the catalog you will use (Glue, Hive Metastore or an Iceberg REST catalog), and the people available for upgrades, monitoring and on-call. Ask your team to write down those answers for your own workload, then compare the cost model using the component breakdown in the cost page under this group.

Which option fits which scenario

This table matches common Athena workloads to the option that usually fits better, with the conditions that change the answer. Read each row as a starting point, then check the conditions against your query volume, team skills and data location. The main takeaway is that Athena suits sporadic, low-maintenance querying, while self-hosted Trino suits steady volume, federation, residency rules and teams that can run a cluster.

ScenarioBetter fitWhy and conditions
Occasional ad hoc queries on S3 dataAmazon AthenaNo cluster to keep running. Stays cheaper when query volume is low and scanned bytes per query are small, so confirm your monthly scan totals first.
Steady dashboard workloads on the same tablesSelf-hosted Trino, or a loaded engineRepeated scans of the same S3 files drive per-TB charges up. A self-hosted cluster with an Iceberg catalog can cut repeated scan costs, but only if utilization stays high enough to pay for the servers.
Federated queries across many databasesSelf-hosted TrinoTrino ships built-in connectors for many sources, while Athena reaches non-S3 sources through Lambda-based connectors. Confirm that each source you need has a Trino connector and a supported auth method.
Long batch jobs needing fault-tolerant executionSelf-hosted TrinoAthena does not offer Trino's fault-tolerant execution. For large batch queries, the TASK retry policy needs an exchange manager spooling to S3, Azure Blob Storage, Google Cloud Storage or HDFS, so plan that storage and test retries.
Strict residency or air-gap rulesSelf-hosted TrinoAthena runs in AWS regions and is managed by AWS. A self-hosted Trino cluster with on-premises object storage, such as MinIO or Ceph, keeps queries and data inside your boundary. Confirm the rule with your compliance team.
Teams with no platform engineersAmazon AthenaAthena needs no cluster upgrades, scaling or on-call rota. A self-hosted Trino cluster needs someone to own upgrades, catalog, monitoring and security, so only choose it if that ownership is funded.

How a self-hosted Trino lakehouse is put together

A self-hosted Trino lakehouse has four parts that Athena hides from you. Trino itself is a query engine: a coordinator plans queries and assigns work, and workers execute it. Trino stores no table data of its own. The data sits in object storage that you run or rent, such as S3-compatible storage, and the tables are described to Trino by a table catalog. The catalog tracks which files make up each table, its schema and its snapshots. The files are usually in the Apache Iceberg format, holding Parquet (the default), ORC or Avro data.

  • Coordinator and workers: One coordinator handles planning and client connections, and workers do the scanning and joining. The documentation recommends a dedicated coordinator for larger clusters.
  • Object storage: Holds the Parquet, ORC or Avro data files and table metadata. Losing this bucket loses the data, so its backup and replication are your responsibility.
  • Table catalog: The Iceberg connector supports Hive Metastore, AWS Glue, JDBC, REST, Nessie and Snowflake catalogs, selected with the iceberg.catalog.type setting.
  • Table format: Iceberg supplies schema evolution, time travel and snapshot rollback, and Trino's connector supports INSERT, UPDATE, DELETE and MERGE on it.
  • Access layer: Authentication and access control are configured separately, through a password file, LDAP, OAuth 2.0, Kerberos, certificates or JWT, plus file-based rules, Apache Ranger or Open Policy Agent.

Confirm which catalog your Athena tables already use in the Glue Data Catalog, because that determines the migration path.

Where the data and queries run, and who controls access

Athena keeps the query service in AWS while your data stays in S3, and Trino moves the engine into your own environment. The cards below cover where data and queries run, how users authenticate, how access is enforced, and what evidence an assessor will ask for.

Data location and query infrastructure

In Athena, the query engine runs as an AWS-managed service against your S3 buckets, so the compute path sits outside your accounts. With self-hosted Trino, coordinators and workers run in your own cloud accounts, data centers or air-gapped network, next to the object storage holding the Iceberg or Parquet files. Check where query logs, spill files and fault-tolerant exchange data land, since those copies also fall under your residency rules.

Trino deployment docs

Identity options for users

Athena authenticates callers through AWS IAM, so access follows the identities already in your AWS accounts. Trino offers several authenticators instead: a password file, LDAP, OAuth 2.0, Kerberos, certificates and JWT. Choose one primary method for interactive users and one for service accounts, and confirm that your identity provider's group membership reaches Trino's access rules, because each authenticator must be configured and rotated separately.

Trino security docs

Access control enforcement

Athena applies IAM policies, Lake Formation permissions and workgroup settings. Trino provides file-based rules, Apache Ranger and Open Policy Agent. File-based rules are simple to version in Git but are hard to scale across many teams, while Ranger and OPA add central policy services that you operate. Test table, column and row restrictions against each catalog, because policy gaps are often found in views and federated connectors.

Audit logging and evidence

Athena records query history through AWS logging services, and you decide how long those records are kept. A self-hosted Trino cluster gives you event listeners and coordinator logs that you must ship, store and protect yourself. Define which query, user and access events you retain, where they are stored, and who can read them, so an assessor can trace a sample query back to a named user and an approved policy.

Preparing evidence for assessors

DeployOpen can configure the authentication, access control and logging layers, then document how they operate so your compliance and security teams can review them. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, so agree the evidence list with your assessor before implementation begins.

Where Trino's connectors and fault tolerance go further than Athena

The connector list matters when the lake is not the only place your analysts need to query. If dashboards join S3 data with tables in PostgreSQL, MySQL, Oracle, SQL Server, MongoDB, ClickHouse, Snowflake or BigQuery, Athena's answer is usually a Lambda-based federated connector billed per terabyte scanned, with its own deployment, IAM role and failure modes for each source. Trino ships native connectors for these systems, so the same catalog configuration and access rules cover the lake and the operational databases. Before you commit, list every federated source your queries touch today, then confirm in the Trino connector documentation that each one has a connector and that the connector supports the reads and writes you need, such as predicate pushdown or inserts.

Fault-tolerant execution is the feature most likely to change how long batch jobs behave. It is off by default, so a worker failure during a long query fails the whole query unless you enable it with a QUERY or TASK retry policy in the cluster configuration. The TASK policy is the one the Trino documentation recommends for large batch queries, but it only works once an exchange manager spools intermediate results to S3, Azure Blob Storage, Google Cloud Storage or HDFS. Plan that bucket, its lifecycle rules and its cost before enabling the policy, and test a failure in staging. Athena gives you no equivalent control over retries inside the engine.

Two limits deserve a check before you design around them. The Trino Snowflake connector accesses one Snowflake database per catalog, so a Snowflake estate with several databases needs several catalog definitions and a clear naming scheme for analysts. The connector also reads through Apache Arrow and supports INSERT and CREATE TABLE AS, which you should verify against your Snowflake account's settings. More generally, connectors track the versions of the systems they read, so test each one against the exact versions of PostgreSQL, Oracle, Snowflake and the others in your environment, and rerun that test after every Trino upgrade.

Cost components on each side and what drives them

Athena and self-hosted Trino charge for different things, and the bill on each side moves with different inputs. Splitting cost into query charges, storage, compute, catalog, operations and the initial build shows which lines are one-time and which recur, and what to ask for before comparing totals.

Athena query charges

Athena bills each query by data scanned or by provisioned capacity measured in DPUs, so the charge follows how much data each query reads. Check current AWS pricing for your region and edition, since rates change. The main driver is query volume multiplied by bytes scanned per query. Partitioning, columnar formats and compaction reduce scanned bytes, which lowers this line directly.

Athena engine docs

Object storage and request charges

Your Parquet, ORC or Avro files sit in Amazon S3 under either engine, so storage and request fees are paid to AWS in both models. These lines are recurring and scale with data volume and the number of objects read. Small files and many list calls raise request costs on both sides, so table layout matters as much as engine choice. Confirm S3 rates and any cross-region transfer for your setup.

Trino compute nodes

A self-hosted cluster needs a coordinator and workers on EC2 or Kubernetes nodes, paid for as instance or node hours whether or not queries run. Cost depends on cluster size, how many hours it stays up, and whether you use reserved or spot capacity. Concurrency is the main driver: idle capacity is billed, while peak queues cause slowdowns. Ask for a sizing estimate tied to your peak concurrency and query runtimes.

Trino deployment docs

Catalog and metadata services

Trino needs a table catalog such as an Iceberg REST catalog, Hive Metastore or AWS Glue, and the catalog choice sets this line. Glue has per-request charges, while a self-hosted REST or Hive service adds a database and an operator to run it. Check how each option handles concurrent commits and access control before you pick one, since the choice is hard to reverse.

Iceberg connector docs

Monitoring, upgrades and on-call

Self-hosting adds recurring labor: monitoring query latency and node health, applying Trino upgrades, patching Java and the operating system, and answering pages when queries fail. Athena carries none of this, so this line is often the largest difference and the least visible in a price comparison. Ask who owns on-call, how many hours per month are budgeted, and whether a retainer covers upgrades.

Initial build and skills

Building the cluster, connecting the catalog, configuring authentication and access control, and migrating saved queries is a one-time cost paid in engineering time or a fixed-scope implementation. Team skills drive how long it takes: teams that already run Kubernetes and Java services spend less than teams starting from scratch. Ask any partner for a written scope with deliverables before work starts, and confirm which parts recur after handover.

What moving from Athena to self-hosted Trino involves

The sequence keeps the data in S3 and changes the engine, metadata and access rules around it, so each step ends with a check that Trino returns the same answers Athena does.

  1. Inventory queries, views, workgroups and Glue tables

    Your team lists every Glue Data Catalog database and table, every saved query, every view, each Athena workgroup with its result location and limits, and every federated connector backed by a Lambda function. Export table definitions and view SQL, and record which dashboards and scheduled jobs call Athena, because those are the consumers that must be repointed. This step is done when the inventory covers every consumer and each item has an owner who confirms it is still in use. Confirm the export format with your own tooling, since it depends on how your Glue and Athena environment is set up.

  2. Stand up Trino and a table catalog alongside Athena

    Platform engineers install Trino on a 64-bit Linux host or on Kubernetes using the Helm guide in the Trino deployment documentation, with a Java runtime that meets the minimum version listed there. Choose a table catalog that fits your existing metadata: the Glue Data Catalog, a Hive Metastore, or an Iceberg REST or Nessie catalog. Trino does not hold your data, so the cluster needs network access to the S3 buckets and to the catalog. The step is done when a test query against a non-production table returns rows and the coordinator and workers report healthy in the Trino web interface.

  3. Point Trino at the same S3 data

    Engineers register a Trino catalog that uses the Iceberg connector or the Hive connector, configured with the catalog type set through iceberg.catalog.type or the equivalent Hive settings. Tables already in Iceberg format keep their metadata and data files, so Trino reads the same snapshots Athena reads. Tables in plain Parquet or ORC need their definitions recreated in the new catalog, and the connector must match the file format. Cross-check row counts, partition values and schemas for a sample of tables. The check is complete when counts and sample aggregates match on every table in scope.

  4. Port saved queries and views

    Analysts and engineers rewrite saved queries and views from the Athena dialect to Trino SQL, which is close but not identical in functions, type handling and time travel syntax. Athena engine version 3 uses FOR TIMESTAMP AS OF and FOR VERSION AS OF clauses for Iceberg time travel, and each use of them needs to be checked against the Trino Iceberg connector documentation. Keep the original SQL next to the ported version so results can be compared. The step closes when every ported query returns the same result as its Athena original, or each difference is documented and accepted by its owner.

  5. Replace federated Lambda connectors with native connectors

    Each Athena federated query connector that runs as a Lambda function is mapped to a Trino connector for the same source, such as PostgreSQL, MySQL or SQL Server, with its own catalog entry and credentials. Security teams review how each connector authenticates to the source, where credentials are stored, and which network paths are opened. Confirm for each source that the Trino connector exists in the current connector list and supports the operations you need, since read support and write support differ between connectors. The step is done when each federated source answers a test query through Trino and the security review is signed off.

  6. Move workgroups to resource groups and access rules

    Athena workgroups set query limits, result locations and cost controls. In Trino these map to resource groups for concurrency and queueing, and to access control through a file-based rule set, Apache Ranger or Open Policy Agent, with authentication configured through the methods Trino supports, such as LDAP, OAuth 2.0 or certificates. Map each Athena workgroup to a resource group and each IAM-based permission to a Trino access rule. Test that a user who lacked access in Athena still lacks it in Trino, and that the concurrency limits hold under a realistic query mix. The step is done when access tests pass for every role in the inventory.

  7. Run both engines in parallel and compare results

    For a defined period agreed by the data owners, the same scheduled and ad hoc workloads run on both Athena and Trino, and outputs are compared for row counts, totals and dashboard figures. Track failures, timeouts and queries that behave differently, and record the cost of each engine for the same work, using the cost components in your own bills. Trino's fault-tolerant execution is off by default and needs a retry policy and an exchange manager spooling to S3 or another supported store if you want it for long batch queries, so decide early whether those jobs need it. The step is done when the agreed comparison window ends with differences resolved or accepted in writing.

  8. Cut over and retire Athena

    Dashboards, scheduled jobs and applications are repointed to the Trino endpoint, and Athena access is restricted to read-only for a short fallback period set by your change board. After the fallback window closes without rollback, the Athena workgroups, federated Lambda connectors and any Athena-specific permissions are removed, and the Glue tables are kept only where Trino still uses them. The data in S3 is not moved or deleted by this step. The cutover is complete when no Athena query logs appear for the agreed period and every consumer in the inventory is listed as migrated.

Questions teams ask before switching from Athena to Trino

How much cost and effort does a switch from Athena to Trino take?

The cost is mostly people time and recurring infrastructure, not a license fee, because Trino is Apache-2.0 licensed. Athena charges per terabyte scanned or per DPU-hour, so a Trino cluster replaces that bill with servers or Kubernetes nodes, object storage, a table catalog, monitoring and on-call time. The effort depends on how many saved queries, views, federated Lambda connectors and Lake Formation rules you have to port, and on how much of your Glue Data Catalog setup you keep. Ask any provider for a quote built from those components, and separate one-time work (cluster build, query porting, testing) from recurring work (upgrades, patching, capacity). Your own Athena bill by query volume is the other input you need before comparing.

How long does an Athena to Trino migration take?

There is no fixed duration, because the timeline is set by scope and by how well your environment is documented. The main drivers are the number of tables and views in the Glue Data Catalog, the count of saved queries and dashboards that depend on Athena-specific SQL, whether federated sources need native Trino connectors, and how many teams must sign off on access rules. A useful first step is an inventory of workgroups, data sources and query patterns, which shortens every later phase. Ask for a fixed-scope plan with phases, exit criteria and the parallel-run period written down before work starts, so the timeline reflects your estate rather than a generic estimate.

Can our platform team run the Trino migration without outside help?

Often yes, if the team already runs Linux, Java services and object storage, and has someone who can own the query engine. Trino's deployment documentation covers a coordinator and workers, a 64-bit Linux host and a 64-bit Java 25 runtime (minimum 25.0.1), and it includes a Kubernetes guide with Helm. The harder parts are the catalog choice, access control design, fault-tolerant execution decisions and cutover testing, which are easy to underestimate. If the team lacks capacity or experience in one of these areas, a fixed-scope engagement can cover planning, implementation, hardening and documentation while your staff keep ownership. Confirm internal skills and time before deciding which parts to keep in-house.

How many people does a self-hosted Trino cluster need to run?

Staffing depends on cluster size, how many catalogs and connectors you operate, and how strict your uptime and on-call expectations are. At minimum, plan for someone who owns Trino releases and configuration, someone who owns the object storage and catalog services it depends on, and a shared on-call rotation for failed queries and worker loss. Trino's release notes show frequent releases, so the upgrade cadence is a recurring cost to schedule. Ask your provider to estimate effort by role (platform, data, security) and to show the monitoring and alerting scope, rather than accepting a single headcount figure.

Does Athena's Iceberg time travel carry over to Trino?

Yes, for Iceberg tables, Trino's Iceberg connector supports time travel, so historical snapshots remain queryable once the table is read through a catalog Trino can reach. Athena engine version 3 uses FOR TIMESTAMP AS OF and FOR VERSION AS OF clauses, and the Trino syntax differs, so saved queries that use those clauses need to be rewritten and tested. Snapshot retention and expiry settings live in the table metadata, so confirm them before cutover. Apache Iceberg is licensed under Apache License 2.0 and supports rollback to an earlier table state, which helps with recovery planning. Test a few time-travel queries against both engines as part of acceptance.

Can Trino read the same tables in the AWS Glue Data Catalog?

Trino's Iceberg connector supports AWS Glue as a catalog option, selected with the iceberg.catalog.type setting, so Glue-registered Iceberg tables can usually stay where they are. Glue is an AWS service, so Trino needs network access and IAM permissions to it. Hive-format tables need the Hive connector, and the metastore type, table formats and permissions must match what Athena uses today. Check whether any Athena workgroup relies on Lake Formation rules, since those permissions do not transfer automatically and must be rebuilt in Trino's access control layer. Confirm each table format and catalog type in a test environment before you point production traffic at it.

What does the migration need from our security and data teams?

Security and data teams own the decisions that determine whether the cluster can go live. Security should define how users authenticate (Trino supports password file, LDAP, OAuth 2.0, Kerberos, certificates and JWT), and whether access control is file-based, through Apache Ranger or through Open Policy Agent. Data teams should confirm table ownership, retention, snapshot expiry and which datasets may be queried from which network. Both teams should review the audit logging design, the encryption of object storage, and any Lake Formation permissions that must be replaced. Agree these inputs in writing at the start, because they change the scope, the cost and the timeline. DeployOpen can prepare the controls and evidence for your compliance assessment, but independent auditors issue any attestation.

How Trino, the catalog and object storage fit together

The diagram starts with analysts and BI tools sending SQL to the Trino coordinator, which plans the query and hands work to the workers. Workers read table metadata from the catalog, such as an Iceberg REST catalog, Hive Metastore or AWS Glue, and read Parquet data files from object storage in your own account. Trino does not hold the data itself, so the catalog and bucket are where you set access control, encryption and backup. Federated connectors reach external sources like PostgreSQL or Snowflake, and each one needs its own credentials and network path to be reviewed.

Trino reads metadata from the catalog and data files from your own object storage.

What to confirm before you commit to either option

Start with Athena itself, because its feature set changes with engine versions and the Trino project changes on its own schedule. Confirm with AWS which Athena engine version your workgroups use and whether the features you depend on, such as Iceberg time travel through FOR TIMESTAMP AS OF and FOR VERSION AS OF clauses on engine version 3, behave the way your saved queries expect. Then check the upstream side. The latest Trino release in the supplied facts is release 484, published on October 15, 2026, and your self-hosted cluster will need a deliberate upgrade policy, because a version that is current today will not stay current. Check the Trino release notes before you size anything, and confirm the Iceberg connector behavior for the table format versions you actually store. Version 3 support is marked experimental in the connector documentation, so do not assume it is production ready for your tables.

Next, verify the runtime and platform requirements against your own environment. Trino's deployment documentation requires a 64-bit Linux system and a 64-bit Java 25 runtime, minimum 25.0.1, so confirm that your base images, security scanning rules and patch pipeline accept that JVM. If you plan to run the cluster on Kubernetes using the Helm guide, confirm with your platform team who owns node pools, ingress, storage classes for spill and exchange data, and the upgrade path for the chart. Identity needs the same scrutiny. Athena inherits IAM roles and Lake Formation permissions, while Trino offers password file, LDAP, OAuth 2.0, Kerberos, certificates and JWT, with access control that is file-based, Apache Ranger or Open Policy Agent. Decide which identity provider is the source of truth and which group mappings will replace your current IAM policies before you commit.

Finally, confirm that you have the people to run the cluster. Ask who will own coordinator and worker capacity, catalog changes, Iceberg maintenance such as compaction and snapshot expiry, upgrades and on-call response for slow or failed queries. If that staff does not exist internally, get written scope and response expectations from any implementation partner or managed provider before the cutover, not after. Also ask AWS for the current Athena pricing and quota details that apply to your account and region, since those figures set the baseline you are comparing against. Treat this as a checklist to complete with your own data, not as a conclusion, and revisit it before the migration date.

How DeployOpen helps evaluate, implement or migrate

DeployOpen plans and implements self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Amazon Athena vs Trino, that means turning a decision about who runs the Trino engine into a written scope, a tested build and a documented handover.

How we scope

  • Inventory current Athena workgroups, query volumes, data formats and Glue Data Catalog tables before deciding on a target
  • Agree in writing which Trino connectors, catalog type and fault-tolerant execution settings are in scope
  • Confirm the cost components to model: Athena billing, Trino compute, object storage requests, catalog hosting and on-call time
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts

How we build

  • Deploy Trino on Linux in your environment, with a coordinator and workers sized to your query profile
  • Connect an Iceberg or Hive catalog to the existing S3 data, and test saved queries and views against Athena results
  • Configure authentication and access control through your SSO, file rules, Apache Ranger or Open Policy Agent, with audit logging
  • Run security testing of the query endpoints and credential handling before the cluster serves production workloads

How we hand over

  • Deliver runbooks for deployment, upgrades, scaling, backup of catalog metadata and incident response
  • Document the mapping of Athena workgroups to Trino resource groups and the porting status of each saved query
  • Provide evidence of access control, logging and data handling settings for your compliance and security reviewers
  • Include a retest of the findings and a record of what your team owns after handover

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for Trino and its catalog layer
  • Plan Trino version upgrades against the release notes, with testing on a staging cluster before production
  • Confirm with us which parts of operations stay with your team and which move to a retainer
  • Request a quote based on the written scope, since DeployOpen does not publish a price list

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.