-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] Custom S3 Credentials Provider (#2233)
This PR allows the user to provide their own S3 credentials provider as a function that returns S3 credentials. If provided, static credentials are ignored and the function is called at the start and every time S3 credentials are used and the provided credential expiry has passed. ```python import daft def get_creds() -> daft.io.S3Credentials: ... return daft.io.S3Credentials( key_id="[KEY_ID]" access_key="[ACCES KEY]" session_token="[SESSIONT_TOKEN]" expiry=expire_datetime ) io_config = daft.io.IOConfig(s3=daft.io.S3Config(credentials_provider=get_creds, ...) df = daft.read_parquet("s3://path/to/file.parquet", io_config=io_config) ```
- Loading branch information
1 parent
0ba9a19
commit 540e65c
Showing
22 changed files
with
600 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.