Error when query on database in glue catalog

1

Tried in CLI and console mode, when I clicked on a database in dsta catalog, getting below error

AccessDeniedException: Please migrate your catalog to enable access to this database

This Athena catalog was working before fine, not sure what changed internally. Any suggestions would be highly appreciated

Vaas
asked 6 months ago402 views
1 Answer
3
Accepted Answer

Hello,

This error generally occurs when an existing Athena data catalog has not yet been migrated to a new Glue Data Catalog which you might verify through Cloudtrail if anyone within your org performed the changes.

Further, performing the following AWS CLI command on the account that housing the database, the issue can be resolved, import the catalog

aws glue import-catalog-to-glue --catalog-id <acount_id> --region us-east-1

To check the status,

aws glue get-catalog-import-status --catalog-id <acount_id> --region us-east-1
AWS
SUPPORT ENGINEER
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago
  • Thanks a lot! I was able to fix the issue with help of above instructions.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions