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

Allow for object deletion via a presigned URL #2520

Closed
hashpyrit opened this issue Jun 9, 2021 · 5 comments · Fixed by #4313
Closed

Allow for object deletion via a presigned URL #2520

hashpyrit opened this issue Jun 9, 2021 · 5 comments · Fixed by #4313
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue

Comments

@hashpyrit
Copy link

hashpyrit commented Jun 9, 2021

There appears to be no way to generate a pre-signed URL to delete an object from S3 using the V2 Java SDK. This feature exists in the V1 Java SDK https://docs.amazonaws.cn/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/GeneratePresignedUrlRequest.html

Your Environment

  • AWS Java SDK version used: 2.16.78
  • JDK version used: 8
  • Operating System and version: Windows 10
@hashpyrit hashpyrit added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jun 9, 2021
@debora-ito
Copy link
Member

Thank you for reaching out @hashpyrit, adding this feature request to our backlog.
Out of curiosity, can you tell us more about your use case?

For others who want us to support DELETE presigned urls please upvote the issue description, it help us with prioritization.

@debora-ito debora-ito removed the needs-triage This issue or PR still needs to be triaged. label Jun 10, 2021
@hashpyrit
Copy link
Author

hashpyrit commented Jun 10, 2021

Hi @debora-ito . My use case is as follows:
We send messages via RabbitMQ to a service that writes files. Sometimes these files are quite large and thus exceed the max recommended size for RabbitMQ messages so we want to put the files in S3 for retrieval via a presigned URL. It would also be convenient for the file writer service to be able to delete the files from S3 once it's done writing via a presigned URL. Using the presigned URL is great because the file writer doesn't need to know anything about S3 APIs, it just needs to be able to make standard HTTP operations.
Just to confirm, deleting via a presigned URL is supported in the V1 Java SDK correct? It appears as so from looking at the Javadoc but I haven't tried it myself yet. It would be good to have feature parity between the two.

@debora-ito
Copy link
Member

Yes it's possible to generate a delete presigned URL, I didn't know either so I tested :)

@hashpyrit
Copy link
Author

Fantastic thanks for checking. I assume that you used the V1 SDK to do the delete? It would be great if this feature were be put into V2 so it has at least as many features as V1 :).

@github-actions
Copy link

⚠️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.

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

Successfully merging a pull request may close this issue.

3 participants