Athena | Cross Account Access to Connector

0

I am trying to run a cross-account Athena query :

  1. I can list thedefault catalog ARN ""glue:arn:aws:glue:us-east-1:999999999999:catalog" fine (https://docs.aws.amazon.com/athena/latest/ug/security-iam-cross-account-glue-catalog-access.html)
  2. I am unclear how to reference other connector catalogs
  3. Standard presto "show catalogs" doesn't work

How do I reference and query a catalog cross account. Note the second catalog is a connector (hive) from the athena.

AK47
질문됨 2년 전429회 조회
1개 답변
0

Hello AK47,

Please see my answers below:

  1. The doc you shared is for Glue data catalog only, not including other data catalogs such as a hive metastore.

  2. If you would like to query a Hive metastore from another account, you would need to set up Cross Account Lambda Invocation and also provide cross-account access to data. The steps to be followed are listed here: https://docs.aws.amazon.com/athena/latest/ug/hive-metastore-iam-access-lambda.html#hive-metastore-iam-access-lambda-cross-account-invocation

  3. Athena supports some, but not all, Presto and Trino functions and features. If you would like to list the catalogs in a programmatic way, you may consider using AWS cil

aws athena list-data-catalogs  

https://docs.aws.amazon.com/cli/latest/reference/athena/list-data-catalogs.html

or boto3. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_data_catalogs

AWS
지원 엔지니어
Jann_P
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠