determine address of underlying s3 bucket in Athena

134 views Asked by At

I can run this query in Athena frontend:

SELECT * FROM analysisdata."iris" limit 10;

when I click on table properties I get this for location:

s3://Bladata887342ac-a3ce-4600-94d0-9092f4a6bd20/Iris

Is this what I have to use as s3_staging_dir in Python code like so:

cursor = connect(aws_access_key_id='xyz',
                 aws_secret_access_key='xyz',
                 s3_staging_dir='s3://Bladata887342ac-a3ce-4600-94d0-9092f4a6bd20/Iris',
                 region_name='us-east-1').cursor()

Also the S3 bucket is hosted in:

EU (Ireland)

what would be the region_name?

1

There are 1 answers

0
Michael - sqlbot On BEST ANSWER