How to implement a one-time write ticket to AWS S3 bucket?

筅森魡賤 提交于 2020-01-04 04:42:07

问题


guys.

I am trying to implement some mechanism such that an anonymous AWS user can write to a specific S3 bucket that belongs to me, using a ticket provided by me(such as a random string). There may be restrictions on the object size and there should be a time limit( such as, write to the bucket within 1 hour after I issue the ticket to him). Is there any way to implement such thing using AWS S3 access policies?

Thanks in advance!


回答1:


Yes, this is possible using the Post Object API call on S3.

You'll need to generate and sign a security policy and pass it along with the upload. This policy will contain rules as to what types of files can be uploaded, restrictions on file size, location in your bucket where new files can be uploaded, an expiration date for the policy, etc.

To learn more, check out this example as well as this article.



来源:https://stackoverflow.com/questions/25986019/how-to-implement-a-one-time-write-ticket-to-aws-s3-bucket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!