Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow aws session token in profiles file #459

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

benjamin-awd
Copy link
Contributor

@benjamin-awd benjamin-awd commented Oct 15, 2023

Description

Resolves #458

This PR adds support for passing in the AWS session token to a profiles.yml file, allowing for the use of short term credentials.

Models used to test - Optional

Checklist

  • You followed contributing section
  • You kept your Pull Request small and focused on a single feature or bug fix.
  • You added unit testing when necessary
  • You added functional testing when necessary

@nicor88
Copy link
Contributor

nicor88 commented Oct 15, 2023

See my comment in the github issue. I believe that we dont need session token explicitly pass as adapter param. Imho it's cumbersome, because you need to regenerate your profile yml really often, at the same time if your secret token is an env variable, boto3 will use it already without making it explicit as you proposed.

@benjamin-awd
Copy link
Contributor Author

See my comment in the github issue. I believe that we dont need session token explicitly pass as adapter param. Imho it's cumbersome, because you need to regenerate your profile yml really often, at the same time if your secret token is an env variable, boto3 will use it already without making it explicit as you proposed.

Replied over at #458 (comment)

@nicor88 nicor88 added the enable-functional-tests Label to trigger functional testing label Oct 15, 2023
@nicor88 nicor88 merged commit cab91ff into dbt-labs:main Oct 16, 2023
12 checks passed
tatiana pushed a commit to astronomer/astronomer-cosmos that referenced this pull request Nov 10, 2023
Adds the `aws_session_token` argument to Athena, which was added to
dbt-athena 1.6.4 in dbt-labs/dbt-athena#459

Closes: #609

Also addresses this comment:
#578 (comment)
arojasb3 pushed a commit to arojasb3/astronomer-cosmos that referenced this pull request Jul 14, 2024
Adds the `aws_session_token` argument to Athena, which was added to
dbt-athena 1.6.4 in dbt-labs/dbt-athena#459

Closes: astronomer#609

Also addresses this comment:
astronomer#578 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enable-functional-tests Label to trigger functional testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow AWS session token in profiles.yml
2 participants