-
Notifications
You must be signed in to change notification settings - Fork 148
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
ex-aws configuration is not used for presigned_url/4 #4
Comments
presigned_url
Technically they do not use configuration automatically. Configuration is passed in to the I can look and see though if that config can be used by default. |
Just encountered this issue, but had no issues passing in the config map returned from ExAws.Config.new(). Could be useful to just add another f
Happy to make a PR if you think it makes sense. |
Was trying to figure this out just now as well. At first I tried @janajri's comment pointed the way out to me:
|
I think a better approach would be to simply make |
The issue is that it isn’t a request, nor is a pre-signed URL an operation.
I agree that the API is inconsistent, which is definitely sub optimal, but
piping it though request isn’t really consistent either.
…On Thu, Nov 21, 2019 at 8:00 PM Alistair A. Israel ***@***.***> wrote:
I think a better approach would be to simply make ExAws.S3.presigned_url
create the request, then the user has to pipe it to ExAws.request() to be
consistent with the rest of the library?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=AAB4QCMTVWUZUETVTP2BCKDQU4VLZA5CNFSM4EDSP22KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE4FQHY#issuecomment-557340703>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4QCJCV37IF6XZRF2DK5TQU4VLZANCNFSM4EDSP22A>
.
|
Environment
Current behavior
Currently,
ExAws.S3.presigned_url
requires a config map to be manually passed in to access things like our secret access key.It seems like this should happen implicitly using our ExAws S3 configuration, since other functions use our configuration automatically. For example,
Discovers our configuration internally.
Expected behavior
presigned_url
behaves like other functions by discovering configurationThe text was updated successfully, but these errors were encountered: