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

Dynamic credential resolution for AWS endpoints #1419

Merged
merged 4 commits into from
Aug 25, 2024

Conversation

nason
Copy link
Contributor

@nason nason commented Aug 20, 2024

If AWS credentials are provided, they will continue to be used. With this change, they become optional parameters and the AWS SDK will attempt to use the default resolution chain if they are not provided. More details on the default resolution behavior can be found at https://github.com/zirkelc/aws-sigv4-fetch?tab=readme-ov-file#usage and https://www.npmjs.com/package/@aws-sdk/credential-provider-node

See #926 for more context (and sorry for the delay in opening this PR!), I've been using this patch for a while now and have been able to utilize dynamic and temporary keys instead of static credentials to invoke my sagemaker endpoints

nason and others added 2 commits August 20, 2024 12:23
If AWS credentials are provided, they will continue to be used. With this
change, they become optional parameters and the AWS SDK will attempt to
use the default resolution chain if they are not provided.
@nsarrazin nsarrazin added the models This issue is related to model performance/reliability label Aug 23, 2024
@nsarrazin nsarrazin merged commit ef46043 into huggingface:main Aug 25, 2024
3 checks passed
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* Dynamic credential resolution for AWS endpoints

If AWS credentials are provided, they will continue to be used. With this
change, they become optional parameters and the AWS SDK will attempt to
use the default resolution chain if they are not provided.

* cleanup deps

* restore optional aws region in endpointAwsParametersSchema

---------

Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models This issue is related to model performance/reliability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants