Connect Amazon Athena
Your environment(s) must be on a supported release track to use the Amazon Athena connection.
Connect dbt to Amazon's Athena interactive query service to build your dbt project. The following are the required and optional fields for configuring the Athena connection:
| Loading table... |
Development credentials
Enter your development (not deployment) credentials with the following fields:
| Loading table... |
Temporary credentials
If you prefer to not store long-lived IAM user AWS Access Key ID and AWS Secret Access Key in the dbt platform, you can use aws_session_token, which is part of temporary AWS Security Token Service (STS) credentials, instead. This approach mirrors a user or role’s long-term permissions.
To use temporary credentials:
-
Enter the AWS Access Key ID and AWS Secret Access Key in the development environment settings in the dbt platform user interface (UI).
-
Since the
aws_session_tokenisn't available as a UI field in dbt platform, add it using Extended attributes in the environment settings or dbt platform profiles.When you set the
aws_session_tokenin Extended attributes, the key is case-sensitive and must be exactlyaws_session_token.For example, you can use an environment variable so the token isn't stored in the text box UI:
aws_session_token: '{{ env_var(''DBT_ENV_AWS_SESSION_TOKEN'') }}' -
Assign
DBT_ENV_AWS_SESSION_TOKENfor each environment. Since temporary credentials expire, you need to refresh your STS credentials and update the environment (or the variable value) before expiration.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.