Athena
Access configuration details to connect Soda to an Amazon Athena data source.
Connection configuration reference
Install the following package:
pip install soda-athena>4Data source YAML
Create the config file:
soda data-source create -f ds_config.ymlThe data source configuration YAML should look like the following:
type: athena
name: my_athena
connection:
catalog: ${env.ATHENA_CATALOG}
access_key_id: ${env.ATHENA_ACCESS_KEY_ID}
secret_access_key: ${env.ATHENA_SECRET_ACCESS_KEY}
staging_dir: ${env.ATHENA_STAGING_DIR} ## e.g., s3://my-company-athena-staging/query-results/
region_name: ${env.ATHENA_REGION}
work_group: ${env.ATHENA_WOKRGROUP}
# role_arn: <my_role_arn>
# profile_name: <my_aws_profile>
# session_token: <my_session_token>Connection test
Test the data source connection:
Required permissions
The IAM principal (user or role) used by Soda requires both IAM Policy permissions and AWS Lake Formation permissions. Lake Formation permissions take precedence, even AdministratorAccess in IAM Policy will not allow table access if Lake Formation permissions are not also granted.
1. Lake Formation permissions
In addition to the IAM Policy in the following section, grant the following Lake Formation permissions to the principal via the AWS Console → Lake Formation → Data permissions, or via CLI:
Additional Lake Formation permissions for Diagnostics Warehouse
2. IAM Policy permissions
Additional IAM Policy permissions for Diagnostics Warehouse
Last updated
Was this helpful?
