These files are used in this blog post.
functions/database.py
is an example function to create SQLAlchemy URI for a AWS Athena Database connection using secrets fetched from the AWS Secrets Manager store. To test it out, follow the below steps.
- Create an IAM user with permissions to perform queries on Athena and create access keys for it.
- Create an AWS Secrets Manager store.
- Store the credentials for the IAM user created in step 1. in the secrets store under the keys
athena-iam-user-access-key-id
andathena-iam-user-secret-key
. - Run
preset-cli --workspaces=<PRESET_WORKSPACE_URL> superset sync native .
to test.