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

refresh/clear for default http client #195

Open
eoliphan opened this issue Sep 23, 2021 · 0 comments
Open

refresh/clear for default http client #195

eoliphan opened this issue Sep 23, 2021 · 0 comments

Comments

@eoliphan
Copy link

eoliphan commented Sep 23, 2021

Dependencies

{:deps {com.cognitect.aws/api       {:mvn/version "0.8.515"}}}

Enhancement Description

The new client behavior is definitely a better default. However, it'd be nice to be able to force a reset/clear of it in situations where the AWS creds have expired, etc. such that you don't have to bother with manually creating http clients. For example, we use temporary SAML-based creds, and over the course of a daylong REPL session they will eventually time out and i have to restart the repl, or manually create a client and pass it around. so something like:

(aws/reset-default-httpclient) ; and existing clients just work
; or
(aws/reset-defalt-httpclient)
(def s3 (aws/client {:api :s3}))

Stack traces

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant