DocsAWS 101BlogServices

Athena

SQL over data in S3 — backed by DuckDB when available (set ATHENA_ENGINE=duckdb to require it).

JSON-RPC (X-Amz-Target) multi-tenant 32 operations

Quick start

import boto3
ath = boto3.client("athena", endpoint_url="http://localhost:4566",
                   region_name="us-east-1",
                   aws_access_key_id="test", aws_secret_access_key="test")
q = ath.start_query_execution(QueryString="SELECT 1",
    ResultConfiguration={"OutputLocation":"s3://out/"})
print(ath.get_query_results(QueryExecutionId=q["QueryExecutionId"]))

Supported operations

32 operations exposed by this service as of MiniStack 1.5.44. Extracted directly from the handler dispatch in the source module.

BatchGetNamedQuery BatchGetQueryExecution CreateDataCatalog CreateNamedQuery CreatePreparedStatement CreateWorkGroup DeleteDataCatalog DeleteNamedQuery DeletePreparedStatement DeleteWorkGroup GetDatabase GetDataCatalog GetNamedQuery GetPreparedStatement GetQueryExecution GetQueryResults GetTableMetadata GetWorkGroup ListDatabases ListDataCatalogs ListNamedQueries ListPreparedStatements ListQueryExecutions ListTableMetadata ListTagsForResource ListWorkGroups StartQueryExecution StopQueryExecution TagResource UntagResource UpdateDataCatalog UpdateWorkGroup

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::Athena::WorkGroup

See CloudFormation engine for intrinsic support and lifecycle details.

Known limitations

  • ATHENA_ENGINE=mock returns synthetic values (echoes SELECT literals/aliases, else a single mock_value row) — use auto or duckdb for real SQL.
  • Glue Data Catalog integration is limited; simple CREATE EXTERNAL TABLE usually works.

Source

  • ministack/services/athena.py

Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.