[Bug] Invalid aws session token #962
Labels
area:profile
Related to ProfileConfig, like Athena, BigQuery, Clickhouse, Spark, Trino, etc
epic-assigned
good first issue
Good for newcomers
profile:athena
Related to Athena ProfileConfig
size:XS
This PR changes 0-9 lines, ignoring generated files.
triage-needed
Items need to be reviewed / assigned to milestone
Milestone
Cosmos in AthenaAccessKeyProfileMapping always tries to use a session token, even when it is not provided by the Airflow connection
Context
When setting up a new aws connection using only
aws_access_key_id
andaws_secret_access_key
, itgenerates a profile like this:
But
AthenaAccessKeyProfileMapping
sets theaws_session_token
as an empty string, and dbt takes this value,resulting in.
Propose solutions
In profile function
Add a condition that check if there is a token.
The text was updated successfully, but these errors were encountered: