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

Support generating presigned PUT URLs for S3 #6855

Closed
2 tasks
G-Rath opened this issue Apr 7, 2022 · 5 comments
Closed
2 tasks

Support generating presigned PUT URLs for S3 #6855

G-Rath opened this issue Apr 7, 2022 · 5 comments
Assignees
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved. s3

Comments

@G-Rath
Copy link

G-Rath commented Apr 7, 2022

Describe the feature

This is really a re-reporting of #5923 which was closed for being stale but it wasn't.

Currently the aws s3 presign subcommand only supports generating presigned URLs for GET:

https://github.com/aws/aws-cli/blob/v2/awscli/customizations/s3/subcommands.py#L699

It'd be good if we could generate pre-signed URLs for POST/PUT commands too.

Use Case

I often have a need to upload files to an S3 bucket independent of the "where" of that file - e.g. the final database dumps when decommissioning servers; it would be great if I could generate a very short lived URL that I can copy and paste between my terminals rather than having to either download the file to my local or push my access keys up to the server.

Proposed Solution

Implement a --method flags to the subcommand that would have a default value of GET, that would allow passing in PUT as well - optionally there could be other flags to support extended options.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

2

Environment details (OS name and version, etc.)

Ubuntu

@G-Rath G-Rath added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Apr 7, 2022
@G-Rath
Copy link
Author

G-Rath commented Apr 7, 2022

@AdrianCX in your issue you said you could provide a PR - is that something you'd still be interested in doing? I'm keen to see this feature landed, but Python is not one of my primary languages and I've got a few other things on so don't know if I'll have the skills and time to be able to implement this, but you might. I am happy (and can spare the time) to help with the PR, I just don't think I can do it by myself 😓

@aaoswal aaoswal removed the needs-triage This issue or PR still needs to be triaged. label Apr 7, 2022
@aaoswal
Copy link

aaoswal commented Apr 7, 2022

Hi @G-Rath,
Thank you for submitting the feature request. We will review this further to help prioritize it in a future release.

I would also like to request the community to make sure to 👍🏼 this feature-request to help us understand the community needs better.

@aaoswal aaoswal added the s3 label Apr 7, 2022
@aaoswal
Copy link

aaoswal commented Apr 7, 2022

Hi @G-Rath,
This seems to be a duplicate of #3050.
Hence, Closing this issue in favor of the original one.

@aaoswal aaoswal closed this as completed Apr 7, 2022
@aaoswal aaoswal added the duplicate This issue is a duplicate. label Apr 7, 2022
@aaoswal aaoswal self-assigned this Apr 7, 2022
@github-actions
Copy link

github-actions bot commented Apr 7, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

@G-Rath
Copy link
Author

G-Rath commented Apr 7, 2022

@aaoswal and it's even got a PR, awesome! I did try and search for existing issues but guess my keywords didn't hit the right notes to turn that one up 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved. s3
Projects
None yet
Development

No branches or pull requests

2 participants