'Athena on S3 using secrets key

I have got a key and secrets key for an external S3 bucket full of .gz files. I need to analyze this data using Athena. Is there an option to connect Athena to the S3 bucket using a key and secret key? if so, how to do it?

I know how to connect S3 when I get a console connection but not when I've only a key and secret key.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source