Athena Migration

0

I have Athena tables, views created on S3 in an account which I want to migrate to another account. What is the best possible way to migrate?

asked 2 years ago892 views
1 Answer
0

Hi, @Ajeeth K

There are no migration methods available, so you'll have to do the extraction and copying yourself.

You can get the metadata structure of the table used by Athena with aws glue get-table.
Then, by deleting unnecessary fields and changing the parameters for the acquired structure and doing aws glue create-table, you can copy the structure to another database and use it from Athena.

The unnecessary fields are:

  • DatabaseName
  • CreateTime
  • UpdateTime
  • CreatedBy
  • IsRegisteredWithLakeFormation
  • CatalogId
  • CatalogId
profile picture
EXPERT
iwasa
answered 2 years ago

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