aws / aws/serverless-application-model

Update deprecated Athena APIs in AthenaQueryPolicy template

Open
#3,785 0 comments 0 reactions 0 assignees View on GitHub
stage/accepted
Dominant language
Python
Stars
9.6k
Forks
2.5k
Avg merge
1d 11h
Merged PRs (30d)
7

Description

Hello,
it seems like some Athena APIs will be deprecated starting 01.11.2025:

> On October 31, 2025, Athena will remove the deprecated APIs from operation, causing any application code using the deprecated APIs to return an error. The deprecated APIs are only accessed through older Athena data catalog resources, which have been replaced by AWS Glue Data Catalog, and older versions of Athena drivers (prior to JDBC-3.x [1] and ODBC-2.x [2]) and AWS SDKs (prior to aws-sdk-java-2.x [3]).
[...]
The following lists the deprecated APIs and replacement APIs that provide equivalent functionality (include both athena and glue permissions in your IAM policy).
athena:GetCatalogImportStatus | glue:GetCatalogImportStatus
athena:GetNamespaces | athena:ListDatabases and glue:GetDatabases
athena:GetTables | athena:ListTableMetadata and glue:GetTables
athena:GetCatalogs | athena:ListDataCatalogs
athena:GetNamespace | athena:GetDatabase and glue:GetDatabase
athena:GetTable | athena:GetTableMetadata and glue:GetTable
athena:RunQuery | athena:StartQueryExecution
athena:GetExecutionEngine | athena:GetWorkGroup

Therefore, the AthenaQueryPolicy SAM policy template in [policy_templates.json](https://github.com/aws/serverless-application-model/blob/develop/samtranslator/policy_templates_data/policy_templates.json) will need to be updated.
It includes 6 out of 8 soon-to-be-deprecated APIs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.