Amazon Athena
User Guide

Access to Amazon S3

In addition to the allowed actions for Athena that you define in IAM identity-based policies, if you or your users need to create tables and work with underlying data, you must grant appropriate access to the Amazon S3 location of the data.

You can do this using identity-based policies, bucket resource policies, or both. For detailed information and scenarios about how to grant Amazon S3 access, see Example Walkthroughs: Managing Access in the Amazon Simple Storage Service Developer Guide. For more information and an example of which Amazon S3 actions to allow, see the example bucket policy later in Cross-Account Access.

Note

Athena does not support restricting or allowing access to Amazon S3 resources based on the aws:SourceIp condition key.